Skip to content

Commit b3b8495

Browse files
committed
Use --result-file=existing_db.sql instead of piping the output to a file in the updater.
1 parent 4240d44 commit b3b8495

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/update.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@
142142
//** export the current database data
143143
if( !empty($conf["mysql"]["admin_password"]) ) {
144144

145-
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");
145+
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']);
146146
}
147147
else {
148148

149-
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");
149+
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']);
150150
}
151151

152152
// create a backup copy of the ispconfig database in the root folder

0 commit comments

Comments
 (0)