diff --git a/install/lib/update.lib.php b/install/lib/update.lib.php index 6f29acefd3cb1a19df273ff208dace5e059328f2..4fc35c3abb87bfb08f6a0c05f5916b63e028c060 100644 --- a/install/lib/update.lib.php +++ b/install/lib/update.lib.php @@ -59,6 +59,8 @@ function prepareDBDump() { system("mysqldump -h ".escapeshellarg($conf['mysql']['host'])." -u ".escapeshellarg($conf['mysql']['admin_user'])." -c -t --add-drop-table --create-options --quick --result-file=existing_db.sql ".$conf['mysql']['database']); } + chmod('existing_db.sql', 0400); + chown('existing_db.sql', 'root'); /* * If we have a server with nothing in it except VE's then the database of thie server is empty.