mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
Update eqemu_server.pl [skip ci]
This commit is contained in:
parent
bce3609617
commit
f3782af10e
@ -74,13 +74,14 @@ if(-e "eqemu_update.pl"){
|
|||||||
|
|
||||||
print "[Info] For EQEmu Server management utilities - run eqemu_server.pl\n" if $ARGV[0] eq "ran_from_world";
|
print "[Info] For EQEmu Server management utilities - run eqemu_server.pl\n" if $ARGV[0] eq "ran_from_world";
|
||||||
|
|
||||||
|
check_db_version_table();
|
||||||
|
|
||||||
#::: Check if db_version table exists...
|
#::: Check if db_version table exists...
|
||||||
if(trim(get_mysql_result("SHOW COLUMNS FROM db_version LIKE 'Revision'")) ne "" && $db){
|
if(trim(get_mysql_result("SHOW COLUMNS FROM db_version LIKE 'Revision'")) ne "" && $db){
|
||||||
print get_mysql_result("DROP TABLE db_version");
|
print get_mysql_result("DROP TABLE db_version");
|
||||||
print "[Database] Old db_version table present, dropping...\n\n";
|
print "[Database] Old db_version table present, dropping...\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
check_db_version_table();
|
|
||||||
check_for_world_bootup_database_update();
|
check_for_world_bootup_database_update();
|
||||||
|
|
||||||
sub urlencode {
|
sub urlencode {
|
||||||
@ -446,7 +447,8 @@ sub do_installer_routines {
|
|||||||
|
|
||||||
#::: Download assets
|
#::: Download assets
|
||||||
if($OS eq "Windows"){
|
if($OS eq "Windows"){
|
||||||
fetch_latest_windows_binaries();
|
# fetch_latest_windows_binaries();
|
||||||
|
fetch_latest_windows_appveyor();
|
||||||
get_remote_file($install_repository_request_url . "lua51.dll", "lua51.dll", 1);
|
get_remote_file($install_repository_request_url . "lua51.dll", "lua51.dll", 1);
|
||||||
get_remote_file($install_repository_request_url . "zlib1.dll", "zlib1.dll", 1);
|
get_remote_file($install_repository_request_url . "zlib1.dll", "zlib1.dll", 1);
|
||||||
get_remote_file($install_repository_request_url . "libmysql.dll", "libmysql.dll", 1);
|
get_remote_file($install_repository_request_url . "libmysql.dll", "libmysql.dll", 1);
|
||||||
@ -722,6 +724,7 @@ sub fetch_utility_scripts {
|
|||||||
if($OS eq "Windows"){
|
if($OS eq "Windows"){
|
||||||
get_remote_file($install_repository_request_url . "t_database_backup.bat", "t_database_backup.bat");
|
get_remote_file($install_repository_request_url . "t_database_backup.bat", "t_database_backup.bat");
|
||||||
get_remote_file($install_repository_request_url . "t_start_server.bat", "t_start_server.bat");
|
get_remote_file($install_repository_request_url . "t_start_server.bat", "t_start_server.bat");
|
||||||
|
get_remote_file($install_repository_request_url . "t_server_update_binaries_no_bots.bat", "t_server_update_binaries_no_bots.bat");
|
||||||
get_remote_file($install_repository_request_url . "t_start_server_with_login_server.bat", "t_start_server_with_login_server.bat");
|
get_remote_file($install_repository_request_url . "t_start_server_with_login_server.bat", "t_start_server_with_login_server.bat");
|
||||||
get_remote_file($install_repository_request_url . "t_stop_server.bat", "t_stop_server.bat");
|
get_remote_file($install_repository_request_url . "t_stop_server.bat", "t_stop_server.bat");
|
||||||
get_remote_file($install_repository_request_url . "t_server_crash_report.pl", "t_server_crash_report.pl");
|
get_remote_file($install_repository_request_url . "t_server_crash_report.pl", "t_server_crash_report.pl");
|
||||||
@ -1015,7 +1018,7 @@ sub check_db_version_table{
|
|||||||
version int(11) DEFAULT '0'
|
version int(11) DEFAULT '0'
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
INSERT INTO db_version (version) VALUES ('1000');");
|
INSERT INTO db_version (version) VALUES ('1000');");
|
||||||
print "[Database] Table 'db_version' does not exists.... Creating...\n\n";
|
print "[Database] Table 'db_version' does not exist.... Creating...\n\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1299,6 +1302,7 @@ sub fetch_latest_windows_binaries {
|
|||||||
}
|
}
|
||||||
print "[Update] Done\n";
|
print "[Update] Done\n";
|
||||||
|
|
||||||
|
|
||||||
rmtree('updates_staged');
|
rmtree('updates_staged');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1532,11 +1536,11 @@ sub fetch_peq_db_full{
|
|||||||
print "[Install] DB :: Installing :: " . $destination_file . "\n";
|
print "[Install] DB :: Installing :: " . $destination_file . "\n";
|
||||||
get_mysql_result_from_file($file);
|
get_mysql_result_from_file($file);
|
||||||
}
|
}
|
||||||
if($file=~/eqtime/i){
|
|
||||||
print "[Install] Installing eqtime.cfg\n";
|
|
||||||
copy_file($file, "eqtime.cfg");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#::: PEQ DB baseline version
|
||||||
|
print get_mysql_result("DELETE FROM db_version");
|
||||||
|
print get_mysql_result("INSERT INTO `db_version` (`version`) VALUES (9130);");
|
||||||
}
|
}
|
||||||
|
|
||||||
sub map_files_fetch_bulk{
|
sub map_files_fetch_bulk{
|
||||||
@ -2157,7 +2161,7 @@ sub run_database_check{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#::: Iterate through Manifest backwards from binary version down to local version...
|
#::: Iterate through Manifest backwards from binary version down to local version...
|
||||||
for($i = $binary_database_version ; $i > $revision_check; $i--){
|
for($i = $revision_check; $i < $binary_database_version; $i++){
|
||||||
if(!defined($m_d{$i}[0])){ next; }
|
if(!defined($m_d{$i}[0])){ next; }
|
||||||
|
|
||||||
$file_name = trim($m_d{$i}[1]);
|
$file_name = trim($m_d{$i}[1]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user