Update repair.sh

This commit is contained in:
Angelillo15 2023-01-28 12:36:25 +01:00 committed by GitHub
parent ff619f6eb8
commit de75def809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 19 deletions

View File

@ -1,5 +1,3 @@
#!/bin/bash
if (( $EUID != 0 )); then
echo "Please run as root"
exit
@ -28,28 +26,14 @@ repairPanel(){
php artisan queue:restart
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
apt update
apt install -y nodejs
npm i -g yarn
yarn
yarn build:production
sudo php artisan optimize:clear
php artisan up
}
while true; do
read -p "Are you sure [y/N]? " yn
read -p "Are you sure that you want to install the theme [y/n]? " yn
case $yn in
[Yy]* ) repairPanel; break;;
[Nn]* ) exit;;
* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
done