summaryrefslogtreecommitdiffstats
path: root/main/postgresql/postgresql.initd
diff options
context:
space:
mode:
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() {