summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@fedoraproject.org>2005-01-11 21:21:32 +0000
committerDaniel J Walsh <dwalsh@fedoraproject.org>2005-01-11 21:21:32 +0000
commit09d8b02f0f15d2931d3ef87f1d236d96e36080d1 (patch)
tree9d1920ec43d5dd3e215738b232949f794c50e00f
parent60170234ebc77eec82e3b22c61f3e816c35f5884 (diff)
downloadpostgresql-setup-09d8b02f0f15d2931d3ef87f1d236d96e36080d1.tar.gz
postgresql-setup-09d8b02f0f15d2931d3ef87f1d236d96e36080d1.tar.xz
postgresql-setup-09d8b02f0f15d2931d3ef87f1d236d96e36080d1.zip
fix to only restorecon on data directory postgresql.init
-rw-r--r--postgresql.init3
1 files changed, 1 insertions, 2 deletions
diff --git a/postgresql.init b/postgresql.init
index 6dd7ba2..65c3ed4 100644
--- a/postgresql.init
+++ b/postgresql.init
@@ -94,7 +94,6 @@ fi
# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
-export PGDATADIR=/var/lib/pgsql
export PGDATA=/var/lib/pgsql
if [ -f $PGDATA/PG_VERSION ] && [ -d $PGDATA/base/template1 ]
then
@@ -166,7 +165,7 @@ start(){
mkdir -p $PGDATA || exit 1
chown postgres:postgres $PGDATA
chmod go-rwx $PGDATA
- [ -x /sbin/restorecon ] && restorecon -R $PGDATADIR
+ [ -x /sbin/restorecon ] && restorecon -R $PGDATA
fi
# Make sure the locale from the initdb is preserved for later startups...
[ -f /etc/sysconfig/i18n ] && cp /etc/sysconfig/i18n $PGDATA/../initdb.i18n