Update eqemu_server.pl [skip ci] Testing self update

This commit is contained in:
Akkadius 2016-08-25 13:00:57 -05:00 committed by GitHub
parent 24856b6a2d
commit 75694e8797

View File

@ -292,12 +292,16 @@ sub do_self_update_check_routine {
$start_dir
);
for my $file (@files) {
if($file=~/eqemu_server/i){
if($file=~/eqemu_server/i){
$destination_file = $file;
$destination_file =~s/updates_staged\///g;
print "[Install] Installing :: " . $destination_file . "\n";
unlink($destination_file);
copy_file($file, $destination_file);
if($OS eq "Linux"){
system("chmod 755 eqemu_server.pl");
system("chown eqemu eqemu_server.pl");
}
}
}
print "[Install] Done\n";