feat: remove legacy rsync/manual install methods, standardize SteamCMD pipeline, fix Update button
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/9c87b62e-17b2-4f36-9b49-82238d73dda2 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
43877bbd9e
commit
75e63475ae
17 changed files with 56 additions and 1000 deletions
|
|
@ -54,11 +54,8 @@ function exec_ogp_module() {
|
|||
|
||||
$server_xml = read_server_config(SERVER_CONFIG_LOCATION."/".$home_info['home_cfg_file']);
|
||||
|
||||
if ( $server_xml->installer != "steamcmd" )
|
||||
{
|
||||
print_failure( get_lang("xml_steam_error") );
|
||||
return;
|
||||
}
|
||||
$use_steamcmd = ((string)$server_xml->installer === "steamcmd");
|
||||
|
||||
$remote = new OGPRemoteLibrary($home_info['agent_ip'],$home_info['agent_port'],$home_info['encryption_key'], $home_info['timeout']);
|
||||
$host_stat = $remote->status_chk();
|
||||
if( $host_stat === 0 )
|
||||
|
|
@ -134,7 +131,7 @@ function exec_ogp_module() {
|
|||
}
|
||||
|
||||
}
|
||||
else
|
||||
elseif ($use_steamcmd && !empty((string)$installer_name))
|
||||
{
|
||||
if( preg_match("/win32/", $server_xml->game_key) OR preg_match("/win64/", $server_xml->game_key) )
|
||||
$cfg_os = "windows";
|
||||
|
|
@ -168,6 +165,17 @@ function exec_ogp_module() {
|
|||
$betaname,$betapwd,$login,$pass,$settings['steam_guard'],
|
||||
$exec_folder_path,$exec_path,$precmd,$postcmd,$cfg_os,$lockFiles,$arch);
|
||||
}
|
||||
else
|
||||
{
|
||||
// No SteamCMD installer — run pre/post install scripts only.
|
||||
if (!empty((string)$precmd))
|
||||
$remote->exec((string)$precmd);
|
||||
if (!empty((string)$postcmd))
|
||||
$remote->exec((string)$postcmd);
|
||||
print_success( get_lang("update_started") );
|
||||
$view->refresh("?m=gamemanager&p=game_monitor&home_id=$home_id", 3);
|
||||
return;
|
||||
}
|
||||
|
||||
if( $steam_out === 0 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue