Update PhyreServer.php
This commit is contained in:
parent
c6110f0000
commit
c6b4c38d8f
1 changed files with 10 additions and 4 deletions
|
@ -97,11 +97,17 @@ class PhyreServer extends Model
|
||||||
$ssh = new SSH2($this->ip);
|
$ssh = new SSH2($this->ip);
|
||||||
if ($ssh->login($this->username, $this->password)) {
|
if ($ssh->login($this->username, $this->password)) {
|
||||||
|
|
||||||
$output = $ssh->exec('rm -rf /usr/local/phyre/update/update-web-panel.sh');
|
$output = $ssh->exec('cd /usr/local/phyre/web && /usr/local/phyre/php/bin/php artisan apache:ping-websites-with-curl');
|
||||||
$output = $ssh->exec('cd /usr/local/phyre/update && wget https://raw.githubusercontent.com/CloudVisionApps/PhyrePanel/main/update/update-web-panel.sh');
|
dd($output);
|
||||||
$output = $ssh->exec('chmod +x /usr/local/phyre/update/update-web-panel.sh');
|
|
||||||
$output = $ssh->exec('cd /usr/local/phyre/update && ./update-web-panel.sh');
|
|
||||||
|
|
||||||
|
$output = '';
|
||||||
|
$output .= $ssh->exec('wget https://raw.githubusercontent.com/CloudVisionApps/PhyrePanel/main/update/update-web-panel.sh -O /usr/local/phyre/update/update-web-panel.sh');
|
||||||
|
$output .= $ssh->exec('chmod +x /usr/local/phyre/update/update-web-panel.sh');
|
||||||
|
$output .= $ssh->exec('/usr/local/phyre/update/update-web-panel.sh');
|
||||||
|
|
||||||
|
dd($output);
|
||||||
|
|
||||||
|
$this->healthCheck();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue