mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
Update eqemu_server.pl [skip ci] Testing self update
This commit is contained in:
parent
a70291f20f
commit
24856b6a2d
@ -20,7 +20,6 @@ use File::Find;
|
|||||||
use Time::HiRes qw(usleep);
|
use Time::HiRes qw(usleep);
|
||||||
|
|
||||||
#::: Variables
|
#::: Variables
|
||||||
|
|
||||||
$install_repository_request_url = "https://raw.githubusercontent.com/Akkadius/EQEmuInstall/master/";
|
$install_repository_request_url = "https://raw.githubusercontent.com/Akkadius/EQEmuInstall/master/";
|
||||||
$eqemu_repository_request_url = "https://raw.githubusercontent.com/EQEmu/Server/master/";
|
$eqemu_repository_request_url = "https://raw.githubusercontent.com/EQEmu/Server/master/";
|
||||||
|
|
||||||
@ -31,9 +30,7 @@ $console_output .= " Operating System is: $Config{osname}\n";
|
|||||||
if($Config{osname}=~/freebsd|linux/i){ $OS = "Linux"; }
|
if($Config{osname}=~/freebsd|linux/i){ $OS = "Linux"; }
|
||||||
if($Config{osname}=~/Win|MS/i){ $OS = "Windows"; }
|
if($Config{osname}=~/Win|MS/i){ $OS = "Windows"; }
|
||||||
|
|
||||||
#::: If current version is less than what world is reporting, then download a new one...
|
#::: Check for script self update
|
||||||
$current_version = 14;
|
|
||||||
|
|
||||||
do_self_update_check_routine();
|
do_self_update_check_routine();
|
||||||
|
|
||||||
$perl_version = $^V;
|
$perl_version = $^V;
|
||||||
@ -299,6 +296,7 @@ sub do_self_update_check_routine {
|
|||||||
$destination_file = $file;
|
$destination_file = $file;
|
||||||
$destination_file =~s/updates_staged\///g;
|
$destination_file =~s/updates_staged\///g;
|
||||||
print "[Install] Installing :: " . $destination_file . "\n";
|
print "[Install] Installing :: " . $destination_file . "\n";
|
||||||
|
unlink($destination_file);
|
||||||
copy_file($file, $destination_file);
|
copy_file($file, $destination_file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user