diff --git a/plugins/postgresql/index.py b/plugins/postgresql/index.py index 0a834c1fb..5475f5b49 100755 --- a/plugins/postgresql/index.py +++ b/plugins/postgresql/index.py @@ -249,7 +249,7 @@ def pGetDbUser(): def initPgData(): serverdir = getServerDir() - if not os.path.exists(serverdir + '/postgresql'): + if not os.path.exists(serverdir + '/data'): cmd = 'cd ' + serverdir + ' && ./bin/initdb -D ' + serverdir + "/data" mw.execShell(cmd) return False