diff options
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 e7941648c3..23b0acff4c 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() { |