tbrehm
2010-02-25 b3b8495f4b09a8d6aed3db6ce221d2ff35a290a7
Use  --result-file=existing_db.sql instead of piping the output to a file in the updater.
1 files modified
4 ■■■■ changed files
install/update.php 4 ●●●● patch | view | raw | blame | history
install/update.php
@@ -142,11 +142,11 @@
//** 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