Update eqemu_server.pl [skip ci] Testing self update

This commit is contained in:
Akkadius 2016-08-25 12:56:30 -05:00 committed by GitHub
parent a70291f20f
commit 24856b6a2d

View File

@ -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);
}
}