Skip to content

Commit 5b5b2dd

Browse files
committed
Update | Added 'fastfetch-install.sh' to the menu
1 parent 9355cd2 commit 5b5b2dd

File tree

1 file changed

+18
-27
lines changed

1 file changed

+18
-27
lines changed

menu.sh

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
# Définir les couleurs
43
GREEN=$(tput setaf 2)
54
RED=$(tput setaf 1)
@@ -9,19 +8,15 @@ YELLOW=$(tput setaf 3)
98
BOLD=$(tput bold)
109
RESET=$(tput sgr0)
1110
########################################## INITIALISATION ROOT ##########################################
12-
1311
# Vérifier si l'utilisateur est root
1412
if [[ $EUID -ne 0 ]]; then
1513
echo "${RED}${BOLD}Ce script doit être exécuté en tant que root${RESET}"
1614
# Demander le mot de passe
1715
sudo "$0" "$@"
1816
exit 1
1917
fi
20-
2118
# Le reste du script ici
22-
2319
clear
24-
2520
while true; do
2621
# Affichage du menu
2722
echo " +------------+"
@@ -40,65 +35,61 @@ while true; do
4035
echo " | |"
4136
echo " | 4. Exécuter 'speedtest.sh' |"
4237
echo " | |"
43-
echo " | 5. Exécuter 'pterodactyl-panel-reinstaller'|"
38+
echo " | 5. Exécuter 'fastfetch.sh' |"
39+
echo " | |"
40+
echo " | 6. Exécuter 'pterodactyl-panel-reinstaller'|"
4441
echo " +--------------------------------------------+"
45-
echo " | 6. ${BLUE}${BOLD}Exécuter le Pterodactyl Menu${RESET} |"
42+
echo " | 7. ${BLUE}${BOLD}Exécuter le Pterodactyl Menu${RESET} |"
4643
echo " | └ ${YELLOW}${BOLD}OverStyleFR/Pterodactyl-Installer-Menu${RESET} |"
4744
echo " +--------------------------------------------+"
48-
echo " | 7. ${BOLD}${VIOLET}M${GREEN}e${YELLOW}n${BLUE}u${RESET}${BOLD} SSH ${RESET} |"
45+
echo " | 8. ${BOLD}${VIOLET}M${GREEN}e${YELLOW}n${BLUE}u${RESET}${BOLD} SSH ${RESET} |"
4946
echo " | └ ${VIOLET}${BOLD}OverStyleFR/AutoScriptBash${RESET} |"
5047
echo " +-------------+------------+-----------------+"
51-
echo " | ${RED}${BOLD}8. Quitter${RESET} |"
48+
echo " | ${RED}${BOLD}9. Quitter${RESET} |"
5249
echo " +------------+"
53-
54-
5550
# Lecture du choix de l'utilisateur
56-
read -p "Choisissez une option (1-8) : " choix
57-
51+
read -p "Choisissez une option (1-9) : " choix
5852
# Traitement du choix
5953
case $choix in
60-
6154
1)
6255
echo "Installation de Docker."
63-
# Ajoutez le code correspondant à l'Option 1 ici
6456
bash <(curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/.assets/dockerinstall.sh)
6557
;;
6658
2)
6759
echo "Installation de Yarn."
68-
# Ajoutez le code correspondant à l'Option 2 ici
6960
bash <(curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/.assets/yarninstall.sh)
7061
;;
7162
3)
7263
echo "Exécution du script 'new.sh'."
73-
# Ajoutez le code correspondant à l'Option 3 ici
7464
bash <(curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/.assets/new.sh)
7565
;;
7666
4)
7767
echo "Exécution du script 'speedtest.sh'."
78-
# Ajoutez le code correspondant à l'Option 4 ici
7968
bash <(curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/.assets/speedtest.sh)
8069
;;
8170
5)
82-
echo "Exécuter 'pterodactyl-panel-reinstaller"
83-
# Ajoutez le code correspondant à l'Option 4 ici
84-
bash <(curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/.assets/pterodactylpanelreinstall.sh)
71+
echo "Exécution du script 'fastfetch.sh'."
72+
bash <(curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/refs/heads/main/.assets/fastfetch-install.sh)
8573
;;
8674
6)
75+
echo "Exécuter 'pterodactyl-panel-reinstaller'"
76+
bash <(curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/.assets/pterodactylpanelreinstall.sh)
77+
;;
78+
7)
8779
echo "${BLUE}${BOLD}Exécuter le Pterodactyl Menu${RESET}"
88-
# Ajoutez le code correspondant à l'Option 4 ici
8980
bash <(curl -s https://raw.githubusercontent.com/OverStyleFR/Pterodactyl-Installer-Menu/main/PterodactylMenu.sh)
9081
;;
91-
7)
82+
8)
9283
echo "${BOLD}${VIOLET}M${GREEN}e${YELLOW}n${BLUE}u${RESET}${BOLD} SSH ${RESET}"
93-
# Ajoutez le code correspondant à l'Option 4 ici
9484
bash <(curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/menu_id.sh)
9585
;;
96-
8)
86+
9)
9787
echo "Au revoir !"
9888
exit 0
9989
;;
10090
*)
101-
echo "Choix non valide. Veuillez entrer un numéro entre 1 et 5."
91+
echo "Choix non valide. Veuillez entrer un numéro entre 1 et 9."
10292
;;
10393
esac
104-
done
94+
done
95+

0 commit comments

Comments
 (0)