Ajout Menu Principal
This commit is contained in:
1 parent
06cadc6535
commit
16d11ca7e0
5 files changed
+77
-26
No files matched your search
@@ -0,0 +1,52 @@
|
||||
#! /bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
function check_source
|
||||
{
|
||||
source=$1
|
||||
if [[ -f "./sources/${source}" ]]; then
|
||||
{
|
||||
. ./sources/${source}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Erreur : Impossible de charger les sources ${source}"
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
}
|
||||
|
||||
check_source "couleurs.ksh"
|
||||
|
||||
|
||||
#Affichage du Menu
|
||||
clear
|
||||
echo -e "${SOULIGNE}===== MENU GESTION LINUX =====${RESET} \n"
|
||||
echo -e "Votre Systeme : ${BG_NOIR}${BLEU}${systeme}${RESET}"
|
||||
echo ""
|
||||
echo "Quel module lancer ? "
|
||||
echo " [1] - AutoInstall"
|
||||
echo " [2] - MAJ"
|
||||
echo " [0] - Quitter"
|
||||
read reponse
|
||||
|
||||
case ${reponse} in
|
||||
|
||||
1)
|
||||
. ./modules/AutoInstall/autoinstall.ksh
|
||||
;;
|
||||
|
||||
2)
|
||||
. ./modules/AutoMaj/MAJ.ksh
|
||||
;;
|
||||
|
||||
0)
|
||||
exit
|
||||
;;
|
||||
|
||||
#Autre
|
||||
*)
|
||||
echo -e "${ROUGE}merci de repondre${RESET}"
|
||||
read reponse
|
||||
;;
|
||||
esac
|
||||
Reference in new issue
Block a user