mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-30 09:22:24 +00:00
Fix db updates for binaries in ./bin/ path
This commit is contained in:
parent
255c755169
commit
07fd803d41
17
utils/scripts/eqemu_server.pl
Normal file → Executable file
17
utils/scripts/eqemu_server.pl
Normal file → Executable file
@ -516,13 +516,20 @@ sub check_for_input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub check_for_world_bootup_database_update {
|
sub check_for_world_bootup_database_update {
|
||||||
if ($OS eq "Windows") {
|
|
||||||
@db_version = split(': ', `world db_version`);
|
my $world_path = "world";
|
||||||
}
|
if (-e "bin/world") {
|
||||||
if ($OS eq "Linux") {
|
$world_path = "bin/world";
|
||||||
@db_version = split(': ', `./world db_version`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#::: Get Binary DB version
|
||||||
|
if ($OS eq "Windows") {
|
||||||
|
@db_version = split(': ', `$world_path db_version`);
|
||||||
|
}
|
||||||
|
if ($OS eq "Linux") {
|
||||||
|
@db_version = split(': ', `./$world_path db_version`);
|
||||||
|
}
|
||||||
|
|
||||||
$binary_database_version = trim($db_version[1]);
|
$binary_database_version = trim($db_version[1]);
|
||||||
$local_database_version = trim(get_mysql_result("SELECT version FROM db_version LIMIT 1"));
|
$local_database_version = trim(get_mysql_result("SELECT version FROM db_version LIMIT 1"));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user