From 9c8ebdd1d3a70dec47fd0c528fc2382fbba36aba Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Tue, 3 Dec 2013 15:55:30 +0100 Subject: [PATCH] fix mysqldump for backup (if db exists) on install-process Signed-off-by: Michael Kaufmann (d00p) --- install/lib/class.FroxlorInstall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/lib/class.FroxlorInstall.php b/install/lib/class.FroxlorInstall.php index 9dd2a357..b96e42f9 100644 --- a/install/lib/class.FroxlorInstall.php +++ b/install/lib/class.FroxlorInstall.php @@ -644,7 +644,7 @@ class FroxlorInstall { } if ($do_backup) { - $command = $mysql_dump." ".$this->_data['mysql_database']." -u " . $this->_data['mysql_root_user'] . " -password='" . $this->_data['mysql_root_pass'] . "' --result-file=" . $filename; + $command = $mysql_dump." ".$this->_data['mysql_database']." -u " . $this->_data['mysql_root_user'] . " --password='" . $this->_data['mysql_root_pass'] . "' --result-file=" . $filename; $output = exec($command); if (stristr($output, "error")) { $content .= $this->_status_message('red', $this->_lng['install']['backup_failed']);