mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-05 17:42:24 +00:00
Update eqemu_server.pl to use the bin folder if the binaries are being ran from them [skip ci]
This commit is contained in:
parent
eb4592c3ae
commit
de38440c4f
@ -470,9 +470,19 @@ sub do_installer_routines {
|
|||||||
print `"$path" --host $host --user $user --password="$pass" -N -B -e "DROP DATABASE IF EXISTS $db_name;"`;
|
print `"$path" --host $host --user $user --password="$pass" -N -B -e "DROP DATABASE IF EXISTS $db_name;"`;
|
||||||
print `"$path" --host $host --user $user --password="$pass" -N -B -e "CREATE DATABASE $db_name"`;
|
print `"$path" --host $host --user $user --password="$pass" -N -B -e "CREATE DATABASE $db_name"`;
|
||||||
|
|
||||||
|
my $world_path = "world";
|
||||||
|
if (-e "bin/world") {
|
||||||
|
$world_path = "bin/world";
|
||||||
|
}
|
||||||
|
|
||||||
#::: Get Binary DB version
|
#::: Get Binary DB version
|
||||||
if ($OS eq "Windows") { @db_version = split(': ', `world db_version`); }
|
if ($OS eq "Windows") {
|
||||||
if ($OS eq "Linux") { @db_version = split(': ', `./world db_version`); }
|
@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 DB Version
|
#::: Local DB Version
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user