diff --git a/livesupport/modules/storageAdmin/bin/php/dumpDbSchema.php b/livesupport/modules/storageAdmin/bin/php/dumpDbSchema.php index 02e1e811f..a48d3862c 100644 --- a/livesupport/modules/storageAdmin/bin/php/dumpDbSchema.php +++ b/livesupport/modules/storageAdmin/bin/php/dumpDbSchema.php @@ -3,6 +3,7 @@ require_once 'conf.php'; require_once "$storageServerPath/var/conf.php"; header("Conten-type: text/plain"); $dbname = $config['dsn']['database']; - $res = `pg_dump -s $dbname`; + $dbuser = $config['dsn']['username']; + $res = `pg_dump -s $dbname -U $dbuser`; echo "$res\n"; ?> \ No newline at end of file