mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -276,7 +276,12 @@ def initPgPwd():
|
||||
data = mw.execShell(cmd_pass)
|
||||
|
||||
cmd_pass = "echo \"alter user postgres with password '" + pwd + "'\" | "
|
||||
cmd_pass = cmd_pass + serverdir + '/bin/psql -d postgres'
|
||||
|
||||
if not mw.isAppleSystem():
|
||||
cmd_pass = cmd_pass + ' su - postgres -c "' + \
|
||||
serverdir + '/bin/psql" -d postgres'
|
||||
else:
|
||||
cmd_pass = cmd_pass + serverdir + '/bin/psql -d postgres'
|
||||
data = mw.execShell(cmd_pass)
|
||||
# print(cmd_pass)
|
||||
# print(data)
|
||||
|
||||
Reference in New Issue
Block a user