git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e7fb2ec
)
- dump the db as postgres instead of pgsqluser
author
Tony Mack
<tmack@cs.princeton.edu>
Wed, 15 Nov 2006 20:19:55 +0000
(20:19 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Wed, 15 Nov 2006 20:19:55 +0000
(20:19 +0000)
tools/upgrade-db.py
patch
|
blob
|
history
diff --git
a/tools/upgrade-db.py
b/tools/upgrade-db.py
index
7bbcfd0
..
d1636df
100755
(executable)
--- a/
tools/upgrade-db.py
+++ b/
tools/upgrade-db.py
@@
-297,8
+297,8
@@
try:
# generate db dump
dump_file = '%s/dump.sql' % (temp_dir)
dump_file_encoded = dump_file + ".utf8"
# 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
postgre
s -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)
if os.system(dump_cmd):
print "ERROR: during db dump. Exiting."
sys.exit(1)