Update repair.sh
This commit is contained in:
parent
ff619f6eb8
commit
de75def809
20
repair.sh
20
repair.sh
|
@ -1,5 +1,3 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if (( $EUID != 0 )); then
|
if (( $EUID != 0 )); then
|
||||||
echo "Please run as root"
|
echo "Please run as root"
|
||||||
exit
|
exit
|
||||||
|
@ -28,28 +26,14 @@ repairPanel(){
|
||||||
|
|
||||||
php artisan queue:restart
|
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
|
php artisan up
|
||||||
}
|
}
|
||||||
|
|
||||||
while true; do
|
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
|
case $yn in
|
||||||
[Yy]* ) repairPanel; break;;
|
[Yy]* ) repairPanel; break;;
|
||||||
[Nn]* ) exit;;
|
[Nn]* ) exit;;
|
||||||
* ) exit;;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
Loading…
Reference in New Issue