mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Update eqemu_server.pl [skip ci] Testing self update
This commit is contained in:
parent
24856b6a2d
commit
75694e8797
@ -292,12 +292,16 @@ sub do_self_update_check_routine {
|
|||||||
$start_dir
|
$start_dir
|
||||||
);
|
);
|
||||||
for my $file (@files) {
|
for my $file (@files) {
|
||||||
if($file=~/eqemu_server/i){
|
if($file=~/eqemu_server/i){
|
||||||
$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);
|
unlink($destination_file);
|
||||||
copy_file($file, $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";
|
print "[Install] Done\n";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user