Ensure we don't try to connect to a non-existing database

This commit is contained in:
D. Berge
2020-09-02 16:52:33 +02:00
parent ffd021a23e
commit 19c0562888

View File

@@ -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)