postgresqls:Fixed server running issue and file paths

This commit is contained in:
2023-07-21 19:20:33 +03:00
parent fea8e1366f
commit 1c6ee4122b
3 changed files with 83 additions and 45 deletions
+2 -1
View File
@@ -12,4 +12,5 @@ def postInstall(fromVersion, fromRelease, toVersion, toRelease):
for i in ["LANG", "LANGUAGE", "LC_ALL"]:
os.environ[i] = "en_US.UTF-8"
os.system('/bin/su postgres -s /bin/sh -p -c "/usr/bin/initdb --pgdata /var/lib/postgresql/data"')
os.system('/bin/su postgres -s /bin/sh -p -c "/usr/bin/initdb --pgdata /var/lib/postgresql/data"')
os.system('/bin/su postgres -s /bin/sh -p -c "/usr/bin/pg_ctl --pgdata -l logfile start"')