We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12ea25f commit 7f702abCopy full SHA for 7f702ab
install/update.php
@@ -143,6 +143,13 @@
143
system("mysql -h ".$conf['mysql']['host']." -u ".$conf['mysql']['admin_user']." ".$conf['mysql']['database']." < existing_db.sql");
144
}
145
146
+// create a backup copy of the ispconfig database in the root folder
147
+$backup_db_name = '/root/ispconfig_db_backup_'.date('Y-m-d').'.sql';
148
+copy('existing_db.sql',$backup_db_name);
149
+exec("chmod 700 $backup_db_name");
150
+exec("chown root:root $backup_db_name");
151
+
152
153
//** Update server ini
154
$tmp_server_rec = $inst->db->queryOneRecord("SELECT config FROM server WHERE server_id = ".$conf['server_id']);
155
$old_ini_array = ini_to_array(stripslashes($tmp_server_rec['config']));
0 commit comments