From b3b8495f4b09a8d6aed3db6ce221d2ff35a290a7 Mon Sep 17 00:00:00 2001 From: tbrehm Date: Thu, 25 Feb 2010 15:57:55 +0000 Subject: [PATCH] Use --result-file=existing_db.sql instead of piping the output to a file in the updater. --- install/update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/update.php b/install/update.php index 443173ccb2..9bc4dd7a3c 100644 --- a/install/update.php +++ b/install/update.php @@ -142,11 +142,11 @@ if(is_file(ISPC_INSTALL_ROOT."/install/sql/pre_update.sql")) { //** export the current database data if( !empty($conf["mysql"]["admin_password"]) ) { - system("mysqldump -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']."' -p'".$conf['mysql']['admin_password']."' -c -t --add-drop-table --create-options --quick ".$conf['mysql']['database']." > existing_db.sql"); + system("mysqldump -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']."' -p'".$conf['mysql']['admin_password']."' -c -t --add-drop-table --create-options --quick --result-file=existing_db.sql ".$conf['mysql']['database']); } else { - system("mysqldump -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']."' -c -t --add-drop-table --create-options --quick ".$conf['mysql']['database']." > existing_db.sql"); + system("mysqldump -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']."' -c -t --add-drop-table --create-options --quick --result-file=existing_db.sql ".$conf['mysql']['database']); } // create a backup copy of the ispconfig database in the root folder -- GitLab