From 761ecfeed9e8b798fd98c3613ca406ddc495823b Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Fri, 16 Mar 2018 12:12:56 +0100 Subject: [PATCH] =?UTF-8?q?Mettre=20=C3=A0=20jour=20'install.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 88cf248..0c6aae9 100755 --- a/install.sh +++ b/install.sh @@ -30,7 +30,10 @@ # # As root execute this command (the easy way!): # -# ./install.sh +# # ./install.sh +# or +# # bash install-sh +# # ################################################################################ # Make sure only root can run our script @@ -45,6 +48,7 @@ BG_BLUE="$(tput setab 4)" BG_BLACK="$(tput setab 0)" FG_GREEN="$(tput setaf 2)" FG_WHITE="$(tput setaf 7)" + # Save screen tput smcup # Display menu until selection == 0 @@ -68,8 +72,23 @@ echo -e "\033[1;30m # MOTDs32 is dynamicaly refreshing the /etc/motd file with c echo -e "\033[1;30m # about system status and usage." echo -e "\n \e[34m Installation of MOTDs32 in progress... \e[0m\n\n" +# Check dependenciess +echo -e "Check required dependencies ! (need to be installed)" + +# Check installed + if [ -f "/usr/sbin/sendmail" ] + then + echo -e " - \e[34m Posfix \e[92m OK\e[0m\n" + else + echo -e " - \e[34m Select option 1 \e[91m Missing package !! \e[0m\n" + fi + + + # Check files #echo -e " -->\e[34m Check files:" + + if hash figlet 2>/dev/null; then echo -e " \e[34m- Figlet \e[32m✔ installed.\e[0m" else