[MERGE] From Christophe Chauvet (Sylëam)
bzr revid: stephane@tinyerp.com-20090430152529-fa3ul26csevq2ipw
This commit is contained in:
@@ -171,7 +171,7 @@ class db(netsvc.Service):
|
||||
security.check_super(password)
|
||||
logger = netsvc.Logger()
|
||||
|
||||
cmd = ['pg_dump', '--format=c']
|
||||
cmd = ['pg_dump', '--format=c', '--no-owner']
|
||||
if tools.config['db_user']:
|
||||
cmd.append('--username=' + tools.config['db_user'])
|
||||
if tools.config['db_host']:
|
||||
@@ -210,7 +210,7 @@ class db(netsvc.Service):
|
||||
cr.close()
|
||||
sql_db.close_db('template1')
|
||||
|
||||
cmd = ['pg_restore']
|
||||
cmd = ['pg_restore', '--no-owner']
|
||||
if tools.config['db_user']:
|
||||
cmd.append('--username=' + tools.config['db_user'])
|
||||
if tools.config['db_host']:
|
||||
|
||||
Reference in New Issue
Block a user