- dump the db as postgres instead of pgsqluser
authorTony Mack <tmack@cs.princeton.edu>
Wed, 15 Nov 2006 20:19:55 +0000 (20:19 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 15 Nov 2006 20:19:55 +0000 (20:19 +0000)
tools/upgrade-db.py

index 7bbcfd0..d1636df 100755 (executable)
@@ -297,8 +297,8 @@ try:
                # generate db dump
                dump_file = '%s/dump.sql' % (temp_dir)
                dump_file_encoded = dump_file + ".utf8"
-               dump_cmd = 'pg_dump -i %s -U %s -f %s > /dev/null 2>&1' % \
-                          (config['PLC_DB_NAME'], config['PLC_DB_USER'], dump_file)
+               dump_cmd = 'pg_dump -i %s -U postgres -f %s > /dev/null 2>&1' % \
+                          (config['PLC_DB_NAME'], dump_file)
                if os.system(dump_cmd):
                        print "ERROR: during db dump. Exiting."
                        sys.exit(1)