mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 10:11:37 +00:00
Fix db updates for binaries in ./bin/ path
This commit is contained in:
Regular → Executable
+9
-2
@@ -516,11 +516,18 @@ sub check_for_input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub check_for_world_bootup_database_update {
|
sub check_for_world_bootup_database_update {
|
||||||
|
|
||||||
|
my $world_path = "world";
|
||||||
|
if (-e "bin/world") {
|
||||||
|
$world_path = "bin/world";
|
||||||
|
}
|
||||||
|
|
||||||
|
#::: Get Binary DB version
|
||||||
if ($OS eq "Windows") {
|
if ($OS eq "Windows") {
|
||||||
@db_version = split(': ', `world db_version`);
|
@db_version = split(': ', `$world_path db_version`);
|
||||||
}
|
}
|
||||||
if ($OS eq "Linux") {
|
if ($OS eq "Linux") {
|
||||||
@db_version = split(': ', `./world db_version`);
|
@db_version = split(': ', `./$world_path db_version`);
|
||||||
}
|
}
|
||||||
|
|
||||||
$binary_database_version = trim($db_version[1]);
|
$binary_database_version = trim($db_version[1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user