mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:27:07 +00:00
Ensure we're not using the database we're about to drop
This commit is contained in:
@@ -45,7 +45,7 @@ runner = "RUNNER_NOEXPORT=true RUNNER_IMPORT=true " + os.path.join(bin_path, "ru
|
|||||||
print(system_exports)
|
print(system_exports)
|
||||||
#os.system(system_exports)
|
#os.system(system_exports)
|
||||||
|
|
||||||
cmd = f"psql -U {dbuser} -c 'DROP DATABASE {dbname};'"
|
cmd = f"psql -U {dbuser} -d template1 -c 'DROP DATABASE {dbname};'"
|
||||||
print(cmd)
|
print(cmd)
|
||||||
res = os.system(cmd)
|
res = os.system(cmd)
|
||||||
if res != 0:
|
if res != 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user