|
|
@@ -834,8 +834,6 @@ sub universal_start_without_decrypt
|
|
|
return -14;
|
|
|
}
|
|
|
|
|
|
- secure_path_without_decrypt('chattr-i', $server_exe);
|
|
|
-
|
|
|
if (!-e $home_path)
|
|
|
{
|
|
|
logger "Can't find server's install path [ $home_path ].";
|
|
|
@@ -866,9 +864,6 @@ sub universal_start_without_decrypt
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- # Set ownership on the game home
|
|
|
- set_path_ownership($owner, $group, $home_path, 1);
|
|
|
-
|
|
|
# Fix perms on ogp_agent user's homedir so that other users can access their owned files within this dir
|
|
|
my $fixOGPHomeDirCommand = 'chmod -R ug+rwx $( getent passwd "' . $ogpAgentGroup . '" | cut -d: -f6 )';
|
|
|
sudo_exec_without_decrypt($fixOGPHomeDirCommand);
|
|
|
@@ -884,6 +879,12 @@ sub universal_start_without_decrypt
|
|
|
return -12;
|
|
|
}
|
|
|
|
|
|
+ # Temporarily unlock the server executable
|
|
|
+ secure_path_without_decrypt('chattr-i', $server_exe);
|
|
|
+
|
|
|
+ # Set ownership on the game home
|
|
|
+ set_path_ownership($owner, $group, $home_path, 1);
|
|
|
+
|
|
|
if (!-x $server_exe)
|
|
|
{
|
|
|
if (!chmod 0775, $server_exe)
|