Skip to content

Commit

Permalink
Merge pull request #311 from andreapollastri/3.x
Browse files Browse the repository at this point in the history
3.x
  • Loading branch information
andreapollastri authored Dec 10, 2021
2 parents e0acbc7 + 1141cbc commit 0f08307
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Google Bot noindex, nofollow (for Panel)
### Fixed
- Client Server Patch (build 202112101)
- System Update Error Fix
- Site Domains and Paths in lowercase
- SSL Nginx Restart Fix
- PHP Version fix in site PDFs
Expand Down
24 changes: 12 additions & 12 deletions app/Console/Commands/CipiUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ public function handle()
$servers = Server::where('build', '<', '202112091')->get();

foreach ($servers as $server) {
$ssh = new SSH2($this->server->ip, 22);
$ssh->login('cipi', $this->server->password);
$ssh = new SSH2($server->ip, 22);
$ssh->login('cipi', $server->password);
$ssh->setTimeout(360);
$ssh->exec('echo '.$this->server->password.' | sudo -S sudo wget '.config('app.url').'/sh/client-patch/202112091');
$ssh->exec('echo '.$this->server->password.' | sudo -S sudo dos2unix 202112091');
$ssh->exec('echo '.$this->server->password.' | sudo -S sudo bash 202112091');
$ssh->exec('echo '.$this->server->password.' | sudo -S sudo unlink 202112091');
$ssh->exec('echo '.$server->password.' | sudo -S sudo wget '.config('app.url').'/sh/client-patch/202112091');
$ssh->exec('echo '.$server->password.' | sudo -S sudo dos2unix 202112091');
$ssh->exec('echo '.$server->password.' | sudo -S sudo bash 202112091');
$ssh->exec('echo '.$server->password.' | sudo -S sudo unlink 202112091');
$ssh->exec('exit');

$server->build = '202112091';
Expand All @@ -62,13 +62,13 @@ public function handle()
$servers = Server::where('build', '<', '202112101')->get();

foreach ($servers as $server) {
$ssh = new SSH2($this->server->ip, 22);
$ssh->login('cipi', $this->server->password);
$ssh = new SSH2($server->ip, 22);
$ssh->login('cipi', $server->password);
$ssh->setTimeout(360);
$ssh->exec('echo '.$this->server->password.' | sudo -S sudo wget '.config('app.url').'/sh/client-patch/202112101');
$ssh->exec('echo '.$this->server->password.' | sudo -S sudo dos2unix 202112101');
$ssh->exec('echo '.$this->server->password.' | sudo -S sudo bash 202112101');
$ssh->exec('echo '.$this->server->password.' | sudo -S sudo unlink 202112101');
$ssh->exec('echo '.$server->password.' | sudo -S sudo wget '.config('app.url').'/sh/client-patch/202112101');
$ssh->exec('echo '.$server->password.' | sudo -S sudo dos2unix 202112101');
$ssh->exec('echo '.$server->password.' | sudo -S sudo bash 202112101');
$ssh->exec('echo '.$server->password.' | sudo -S sudo unlink 202112101');
$ssh->exec('exit');

$server->build = '202112101';
Expand Down

0 comments on commit 0f08307

Please sign in to comment.