From c92a4e648c677f4beb4d33dbe320f8050a2cb5d9 Mon Sep 17 00:00:00 2001 From: Angelillo15 Date: Sat, 14 Jan 2023 20:14:28 +0100 Subject: [PATCH] Added repair option --- fix.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 fix.sh diff --git a/fix.sh b/fix.sh new file mode 100644 index 0000000..6b541eb --- /dev/null +++ b/fix.sh @@ -0,0 +1,28 @@ +if (( $EUID != 0 )); then + echo "Please run as root" + exit +fi + +fix() { + echo "Fixing theme..." + cd /var/www/pterodactyl + npx update-browserslist-db@latest + echo "Please wait until the process is finished..." + yarn build:production +} + +fixThemeQuestion(){ + while true; do + read -p "Are you sure that you want to fix the theme [y/N]? " yn + case $yn in + [Yy]* ) fix; break;; + [Nn]* ) exit;; + * ) exit;; + esac + done +} + +echo "Welcome to the IceMinecraftTheme fixer!" +echo "This script will fix the theme if you have an problem with it." +echo "If you have any problem with the theme, please contact me on Discord: https://discord.nookure.com/" +fixThemeQuestion() \ No newline at end of file