mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:07:08 +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.")
|
||||
exit(res)
|
||||
|
||||
cmd = f"psql -U {dbuser} <{dbtemplate}"
|
||||
cmd = f"psql -U {dbuser} -d template1 <{dbtemplate}"
|
||||
print(cmd)
|
||||
os.system(cmd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user