Skip to content

Commit 3cf7f96

Browse files
author
Till Brehm
committed
Write SQL update errors to install log only.
1 parent bf34076 commit 3cf7f96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

install/lib/update.lib.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ function updateDbAndIni() {
205205
$cmd = "mysql --default-character-set=".escapeshellarg($conf['mysql']['charset'])." --force -h ".escapeshellarg($conf['mysql']['host'])." -u ".escapeshellarg($conf['mysql']['admin_user'])." ".escapeshellarg($conf['mysql']['database'])." < ".$sql_patch_filename;
206206
}
207207

208-
if(in_array($next_db_version,explode(',',$silent_update_versions))) $cmd .= ' > /dev/null 2> /dev/null';
208+
if(in_array($next_db_version,explode(',',$silent_update_versions))) {
209+
$cmd .= ' > /dev/null 2> /dev/null';
210+
} else {
211+
$cmd .= ' > /var/log/ispconfig_install.log 2> /var/log/ispconfig_install.log';
212+
}
209213
system($cmd);
210214

211215
swriteln($inst->lng('Loading SQL patch file').': '.$sql_patch_filename);

0 commit comments

Comments
 (0)