mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Update PHPInstaller.php
This commit is contained in:
parent
b2c13ba836
commit
64f47b7fe4
1 changed files with 2 additions and 1 deletions
|
@ -86,6 +86,7 @@ class PHPInstaller
|
|||
// $commands[] = 'ufw allow in "Apache Full"';
|
||||
$commands[] = 'systemctl restart apache2';
|
||||
$commands[] = 'phyre-php /usr/local/phyre/web/artisan phyre:run-repair';
|
||||
$commands[] = 'apt-get autoremove -yq';
|
||||
|
||||
$shellFileContent = '';
|
||||
foreach ($commands as $command) {
|
||||
|
@ -96,7 +97,7 @@ class PHPInstaller
|
|||
$shellFileContent .= 'rm -f /tmp/php-installer.sh';
|
||||
|
||||
file_put_contents('/tmp/php-installer.sh', $shellFileContent);
|
||||
shell_exec('bash /tmp/php-installer.sh >> ' . $this->logFilePath . ' &');
|
||||
dd('bash /tmp/php-installer.sh >> ' . $this->logFilePath . ' &');
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue