diff --git a/sbin/upgrade_database.py b/sbin/upgrade_database.py index f6db36c..61b9d85 100755 --- a/sbin/upgrade_database.py +++ b/sbin/upgrade_database.py @@ -45,7 +45,7 @@ runner = "RUNNER_NOEXPORT=true RUNNER_IMPORT=true " + os.path.join(bin_path, "ru print(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) res = os.system(cmd) if res != 0: