Update by Miike#6900

Fix suggested by our Discord community
This commit is contained in:
Jan 2021-12-22 13:46:16 +01:00 committed by GitHub
parent 0e16dc5104
commit dab6702db3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -409,23 +409,21 @@ class masterServer {
//Steam updater
if ($row['steamgame'] == 'S') {
$this->shellScript .= 'cd /home/' . $this->sshuser . '/masterserver/steamCMD/'. "\n";
$this->shellScript .= 'taskset -c 0 ${IONICE}nice -n +19 ./steamcmd.sh +login ';
$this->shellScript .= 'cd /home/' . $this->sshuser . '/masterserver/steamCMD/'. "\n";
$this->shellScript .= 'taskset -c 0 ${IONICE}nice -n +19 ./steamcmd.sh +force_install_dir ' . $absoluteGamePath . ' +login ';
if (strlen($this->steamAccount) > 0) {
$this->shellScript .= $this->steamAccount . ' ' . $this->steamPassword;
} else if (strlen($row['steamAcc']) > 0) {
$this->shellScript .= $row['steamAcc'] . ' ' . $row['steamPwd'];
} else {
$this->shellScript .= 'anonymous';
$this->shellScript .= 'anonymous ';
}
$this->shellScript .= ' +force_install_dir ' . $absoluteGamePath . ' ';
$fixedId = workAroundForValveChaos($row['appID'], $row['shorten'], false);
$this->shellScript .= ($fixedId == 90) ? '+app_set_config 90 mod ' . $row['shorten'] . ' +app_update 90' : '+app_update ' . $fixedId;
$this->shellScript .= ($fixedId == 90) ? ' +app_set_config 90 mod ' . $row['shorten'] . ' +app_update 90' : '+app_update ' . $fixedId;
$this->shellScript .= ' validate +quit > ' . $updateLog . "\n";
} else if ($row['steamgame'] == 'N' and ($row['shorten'] == 'mc')) {