summaryrefslogtreecommitdiffstats
path: root/main/postgresql/postgresql.initd
diff options
context:
space:
mode:
authorAndrew Manison <amanison@byrd-vm.localdomain>2010-04-04 11:57:02 -0400
committerAndrew Manison <amanison@byrd-vm.localdomain>2010-04-04 11:57:02 -0400
commit8b35a9ab83a841ab17ead4606f647a3158c274fe (patch)
treec429f54931eb13ba1be1da3542614d6d63fa671b /main/postgresql/postgresql.initd
parenta050ffed38a8a17b4b1e7dcb6237800e7881a137 (diff)
parent67eb88bc5458c93a481c692baa0968cf567fc3f2 (diff)
downloadaports-8b35a9ab83a841ab17ead4606f647a3158c274fe.tar.bz2
aports-8b35a9ab83a841ab17ead4606f647a3158c274fe.tar.xz
Merge remote branch 'alpine/master'
Diffstat (limited to 'main/postgresql/postgresql.initd')
-rw-r--r--main/postgresql/postgresql.initd5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/postgresql/postgresql.initd b/main/postgresql/postgresql.initd
index e7941648c..23b0acff4 100644
--- a/main/postgresql/postgresql.initd
+++ b/main/postgresql/postgresql.initd
@@ -11,12 +11,15 @@ depend() {
}
checkconfig() {
- if [ ! -d "$PGDATA" ] ; then
+ [ -d "$PGDATA" ] && return 0
+
+ if [ -z "$AUTO_SETUP" ] || [ "$AUTO_SETUP" = "no" ]; then
eerror "Directory not found: $PGDATA"
eerror "Please make sure that PGDATA points to the right path."
eerror "You can run '/etc/init.d/postgresql setup' to setup a new database cluster."
return 1
fi
+ setup
}
start() {