Address review nits for steamcmd checks and docs wording
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/1575c81b-f8a7-433a-8f3b-e068c0992c18 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
01ad93a11a
commit
93677ea5b3
2 changed files with 6 additions and 3 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
<p>Once your payment is processed, you'll receive:</p>
|
<p>Once your payment is processed, you'll receive:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>A confirmation email with your server details</li>
|
<li>A confirmation email with your server details</li>
|
||||||
<li>Access to your control panel login page</li>
|
<li>Access to your control panel login URL (provided in your service email)</li>
|
||||||
<li>FTP credentials for file management</li>
|
<li>FTP credentials for file management</li>
|
||||||
<li>Server IP address and port</li>
|
<li>Server IP address and port</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -353,8 +353,11 @@ function sw_agent_steamcmd_download(array $mod, array $profile, array $tpl_vars,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate that steamcmd exists
|
// Validate that steamcmd exists
|
||||||
if (!$dry_run && (!is_file($steamcmd) || !is_executable($steamcmd))) {
|
if (!$dry_run && !is_file($steamcmd)) {
|
||||||
return array('ok' => false, 'error' => "SteamCMD not found or not executable: $steamcmd");
|
return array('ok' => false, 'error' => "SteamCMD not found: $steamcmd");
|
||||||
|
}
|
||||||
|
if (!$dry_run && !is_executable($steamcmd)) {
|
||||||
|
return array('ok' => false, 'error' => "SteamCMD is not executable: $steamcmd");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build argument list; escape each argument individually.
|
// Build argument list; escape each argument individually.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue