Fix directory bug
This commit is contained in:
parent
cbc7b59db0
commit
2af3bd16f8
|
@ -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
|
|
@ -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;;
|
||||||
|
|
Loading…
Reference in New Issue