diff options
author | Andrew Manison <amanison@byrd-vm.localdomain> | 2010-04-04 11:57:02 -0400 |
---|---|---|
committer | Andrew Manison <amanison@byrd-vm.localdomain> | 2010-04-04 11:57:02 -0400 |
commit | 8b35a9ab83a841ab17ead4606f647a3158c274fe (patch) | |
tree | c429f54931eb13ba1be1da3542614d6d63fa671b /main/postgresql/postgresql.initd | |
parent | a050ffed38a8a17b4b1e7dcb6237800e7881a137 (diff) | |
parent | 67eb88bc5458c93a481c692baa0968cf567fc3f2 (diff) | |
download | aports-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.initd | 5 |
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() { |