mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:27:07 +00:00
Ensure we don't try to connect to a non-existing database
This commit is contained in:
@@ -52,7 +52,7 @@ if res != 0:
|
|||||||
print("Cannot proceed. Upgrade aborted.")
|
print("Cannot proceed. Upgrade aborted.")
|
||||||
exit(res)
|
exit(res)
|
||||||
|
|
||||||
cmd = f"psql -U {dbuser} <{dbtemplate}"
|
cmd = f"psql -U {dbuser} -d template1 <{dbtemplate}"
|
||||||
print(cmd)
|
print(cmd)
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user