From de75def809e276a645201bc77560049470be3861 Mon Sep 17 00:00:00 2001 From: Angelillo15 <43421778+Angelillo15@users.noreply.github.com> Date: Sat, 28 Jan 2023 12:36:25 +0100 Subject: [PATCH] Update repair.sh --- repair.sh | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/repair.sh b/repair.sh index 86669a5..49609a9 100644 --- a/repair.sh +++ b/repair.sh @@ -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 \ No newline at end of file +done