Skip to content

Commit

Permalink
Update by Miike#6900
Browse files Browse the repository at this point in the history
Fix suggested by our Discord community
  • Loading branch information
AEon-Jan authored Dec 22, 2021
1 parent 0e16dc5 commit dab6702
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions stuff/methods/class_masterserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,23 +409,21 @@ private function linuxCollectData ($row, $force, $returnSuccessInAnyCase) {
//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')) {
Expand Down

0 comments on commit dab6702

Please sign in to comment.