Skip to content

Commit b4077c7

Browse files
committed
Update | Fix mv command + Prevention build
Fix de la commande 'mv' qui retourné une erreur. Ajout d'un message de prévention avant le build du panel Pterodactyl.
1 parent feac013 commit b4077c7

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

pterodactylpanelreinstall.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ echo "${GREEN}${BOLD}Auto-Save .env File${RESET}"
2626
echo ""
2727

2828
mkdir /tmp/pterodactylpanelreinstall
29-
mv /var/wwww/pterodactyl/.env /tmp/pterodactylpanelreinstall/
29+
mv /var/www/pterodactyl/.env /tmp/pterodactylpanelreinstall/
3030

3131

3232
## Supprésion du panel actuelle
@@ -55,7 +55,19 @@ echo ""
5555

5656
mv /tmp/pterodactylpanelreinstall/.env /var/www/pterodactyl/
5757

58-
### Build du panel pterodactyl
58+
############################################ Build du panel pterodactyl ###################################
59+
60+
# Demander à l'utilisateur de faire l'action "save file"
61+
read -p "Voulez vous re-build le panel Pterodactyl ? ${BOLD}NON REVERSIBLE${RESET}" response
62+
63+
# Vérifier si la réponse est "oui"
64+
if [ "$response" = "oui" ]; then
65+
echo "L'utilisateur a répondu 'oui'. Le script continue..."
66+
else
67+
echo "Réponse incorrecte. Le script se termine."
68+
exit 1
69+
fi
70+
5971
echo ""
6072
echo "${VIOLET}${BOLD}Build du panel Pterodactyl${RESET}"
6173
echo ""

0 commit comments

Comments
 (0)