Fix directory bug

This commit is contained in:
Angelillo15 2022-12-16 18:53:25 +01:00
parent cbc7b59db0
commit 2af3bd16f8
2 changed files with 9 additions and 4 deletions

View File

@ -17,7 +17,7 @@ installTheme(){
cd /var/www/pterodactyl cd /var/www/pterodactyl
rm -r IceMinecraftTheme rm -r IceMinecraftTheme
git clone https://github.com/Angelillo15/IceMinecraftTheme.git git clone https://github.com/Angelillo15/IceMinecraftTheme.git
cd MinecraftPurpleTheme cd IceMinecraftTheme
rm /var/www/pterodactyl/resources/scripts/IceMinecraftTheme.css rm /var/www/pterodactyl/resources/scripts/IceMinecraftTheme.css
rm /var/www/pterodactyl/resources/scripts/index.tsx rm /var/www/pterodactyl/resources/scripts/index.tsx
rm /var/www/pterodactyl/resources/scripts/components/server/console/Console.tsx rm /var/www/pterodactyl/resources/scripts/components/server/console/Console.tsx
@ -89,7 +89,8 @@ echo ""
echo "[1] Install theme" echo "[1] Install theme"
echo "[2] Restore backup" echo "[2] Restore backup"
echo "[3] Repair panel (use if you have an error in the theme installation)" echo "[3] Repair panel (use if you have an error in the theme installation)"
echo "[4] Exit" echo "[4] Update the panel"
echo "[5] Exit"
printf "${NO_COLOR}" printf "${NO_COLOR}"
read -p "Please enter a number: " choice read -p "Please enter a number: " choice
@ -106,6 +107,10 @@ if [ $choice == "3" ]
repair repair
fi fi
if [ $choice == "4" ] if [ $choice == "4" ]
then
repair
fi
if [ $choice == "5" ]
then then
exit exit
fi fi

View File

@ -46,7 +46,7 @@ repairPanel(){
} }
while true; do while true; do
read -p "Are you sure that you want to repair the panel [y/N]? " yn read -p "Are you sure [y/N]? " yn
case $yn in case $yn in
[Yy]* ) repairPanel; break;; [Yy]* ) repairPanel; break;;
[Nn]* ) exit;; [Nn]* ) exit;;