Update PHPInstaller.php

This commit is contained in:
Bozhidar 2024-09-10 15:48:25 +03:00
parent b2c13ba836
commit 64f47b7fe4

View file

@ -86,6 +86,7 @@ class PHPInstaller
// $commands[] = 'ufw allow in "Apache Full"'; // $commands[] = 'ufw allow in "Apache Full"';
$commands[] = 'systemctl restart apache2'; $commands[] = 'systemctl restart apache2';
$commands[] = 'phyre-php /usr/local/phyre/web/artisan phyre:run-repair'; $commands[] = 'phyre-php /usr/local/phyre/web/artisan phyre:run-repair';
$commands[] = 'apt-get autoremove -yq';
$shellFileContent = ''; $shellFileContent = '';
foreach ($commands as $command) { foreach ($commands as $command) {
@ -96,7 +97,7 @@ class PHPInstaller
$shellFileContent .= 'rm -f /tmp/php-installer.sh'; $shellFileContent .= 'rm -f /tmp/php-installer.sh';
file_put_contents('/tmp/php-installer.sh', $shellFileContent); 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 . ' &');
} }