Perform a backup of the old config to the backups/ folder

This commit is contained in:
Akkadius 2017-07-23 02:39:19 -05:00
parent 79e825b7c7
commit 8a50039482

View File

@ -326,6 +326,17 @@ sub check_xml_to_json_conversion {
print $fh $json->pretty->utf8->encode($result);
close $fh;
mkdir('backups');
copy_file("eqemu_config.xml", "backups/eqemu_config.xml");
print "[Server Maintenance] eqemu_config.xml is now DEPRECATED \n";
print " A backup of this old config is located in the backups folder of your server directory\n";
print " --- \n";
print " You may have some plugins and/or applications that still require reference of this config file\n";
print " Please update these plugins/applications to use the new configuration format if needed\n";
print " Thanks for your understanding\n";
print " The EQEmulator Team\n\n";
exit;
}