diff --git a/src/Commands/QuantumBuilding.php b/src/Commands/QuantumBuilding.php index 7f24f96..32f36df 100644 --- a/src/Commands/QuantumBuilding.php +++ b/src/Commands/QuantumBuilding.php @@ -81,9 +81,6 @@ function installedRHEL($packageName) system('yarn && yarn build:production'); } - if ($code === 0) - return 0; - - return 1; + return; } } diff --git a/src/Commands/QuantumInstaller.php b/src/Commands/QuantumInstaller.php index 352df6c..1d64fa7 100644 --- a/src/Commands/QuantumInstaller.php +++ b/src/Commands/QuantumInstaller.php @@ -177,14 +177,14 @@ public function handle() $progress->advance(); - spin( - fn() => Artisan::call('quantum:build --no-copyright'), - 'Building Assets (This can take a few minutes)' - ); + info('Building Assets (This can take a few minutes)'); + Artisan::call('quantum:build --no-copyright'); $progress->advance(); - info('Installation Complete'); + exec('php artisan up'); + + info('Installation of Quantum has been complete. Please check if there are any errors'); } private function ip() diff --git a/src/Commands/QuantumUninstaller.php b/src/Commands/QuantumUninstaller.php index a0f9c80..f0d975c 100644 --- a/src/Commands/QuantumUninstaller.php +++ b/src/Commands/QuantumUninstaller.php @@ -140,6 +140,8 @@ public function handle() $progress->finish(); + exec('php artisan up'); + info('Pterodactyl has been reverted to default and updated to the latest version'); return; }