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);
|
||||
|
||||
#::: Variables
|
||||
|
||||
$install_repository_request_url = "https://raw.githubusercontent.com/Akkadius/EQEmuInstall/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}=~/Win|MS/i){ $OS = "Windows"; }
|
||||
|
||||
#::: If current version is less than what world is reporting, then download a new one...
|
||||
$current_version = 14;
|
||||
|
||||
#::: Check for script self update
|
||||
do_self_update_check_routine();
|
||||
|
||||
$perl_version = $^V;
|
||||
@ -299,6 +296,7 @@ sub do_self_update_check_routine {
|
||||
$destination_file = $file;
|
||||
$destination_file =~s/updates_staged\///g;
|
||||
print "[Install] Installing :: " . $destination_file . "\n";
|
||||
unlink($destination_file);
|
||||
copy_file($file, $destination_file);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user