Reordered psql start sequence

This commit is contained in:
Raelon Masters
2020-03-04 23:46:02 -05:00
parent 7a15495654
commit 7dea188afe

2
installer vendored
View File

@@ -314,8 +314,8 @@ if RequiredServices().db_server_found(req) is False:
with open(_sql_file, "w") as sql_file_open:
sql_file_open.write(psql_cmd)
sql_file_open.close()
os.system("sudo systemctl start postgresql")
os.system("sudo -u postgres initdb --locale=en_US.UTF-8 -E UTF8 -D /var/lib/postgres/data")
os.system("sudo systemctl start postgresql")
os.system("sudo -u postgres psql -f %s"%_sql_file)
messages = messages + [
"PostgreSQL installed and started",