File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7171// Database update is a bit brute force and should be rebuild later ;)
7272
7373// export the current database data
74- exec ("mysqldump -h $ conf [mysql_server_host] -u $ conf [mysql_server_ispconfig_user] -p $ conf [mysql_server_ispconfig_password] -c -t --add-drop-table --add-locks --all --quick --lock-tables $ conf [mysql_server_database] > existing_db.sql &> /dev/null " );
74+ system ("mysqldump -h $ conf [mysql_server_host] -u $ conf [mysql_server_ispconfig_user] -p $ conf [mysql_server_ispconfig_password] -c -t --add-drop-table --add-locks --all --quick --lock-tables $ conf [mysql_server_database] > existing_db.sql " );
7575
7676// Delete the old database
7777exec ("/etc/init.d/mysql stop " );
78+ sleep (3 );
7879if ($ conf ["mysql_server_database " ] != '' ) exec ("rm -rf /var/lib/mysql/ " .$ conf ["mysql_server_database " ]);
7980exec ("/etc/init.d/mysql start " );
81+ sleep (5 );
8082
8183// Create the mysql database
8284$ inst ->configure_database ();
8890}
8991
9092// load old data back into database
91- exec ("mysql -h $ conf [mysql_server_host] -u $ conf [mysql_server_ispconfig_user] -p $ conf [mysql_server_ispconfig_password] $ conf [mysql_server_database] < existing_db.sql &> /dev/null " );
93+ system ("mysql -h $ conf [mysql_server_host] -u $ conf [mysql_server_ispconfig_user] -p $ conf [mysql_server_ispconfig_password] $ conf [mysql_server_database] < existing_db.sql " );
9294
9395// Configure postfix
9496$ inst ->configure_postfix ('dont-create-certs ' );
You can’t perform that action at this time.
0 commit comments