first commit
This commit is contained in:
parent
6eda9a4ac1
commit
dbefa91957
1 changed files with 13 additions and 13 deletions
26
install.sh
26
install.sh
|
@ -74,7 +74,7 @@ EOFMO2
|
||||||
|
|
||||||
echo -e "\e[90m # MOTDs32 is dynamicaly refreshing the /etc/motd file with current informations"
|
echo -e "\e[90m # MOTDs32 is dynamicaly refreshing the /etc/motd file with current informations"
|
||||||
echo -e "\e[90m # about system status and usage."
|
echo -e "\e[90m # about system status and usage."
|
||||||
echo -e "\n\e[34m Check MOTDs32 dependencies... \e[0m\n"
|
echo -e "\n\e[34m Check MOTDs32 dependencies... \n"
|
||||||
|
|
||||||
|
|
||||||
# Check dependenciess
|
# Check dependenciess
|
||||||
|
@ -83,35 +83,35 @@ echo -e "\e[34m Check required dependencies ! (need to be installed)"
|
||||||
# Check installed
|
# Check installed
|
||||||
if [ -f "/usr/sbin/sendmail" ]
|
if [ -f "/usr/sbin/sendmail" ]
|
||||||
then
|
then
|
||||||
echo -e " \e[34m- Posfix \e[32m✔ installed.\e[0m"
|
echo -e " \e[34m- Posfix \e[32m✔ installed."
|
||||||
else
|
else
|
||||||
echo -e " \e[34m- Select option 1 \e[91m Missing package !! \e[0m\n"
|
echo -e " \e[34m- Select option 1 \e[91m Missing package !!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "/usr/share/build-essential/essential-packages-list" ]
|
if [ -f "/usr/share/build-essential/essential-packages-list" ]
|
||||||
then
|
then
|
||||||
echo -e " \e[34m- build-dep \e[32m✔ installed.\e[0m"
|
echo -e " \e[34m- build-dep \e[32m✔ installed."
|
||||||
else
|
else
|
||||||
echo -e " \e[34m- build-dep \e[1;31mSelect option 1 \e[91m Missing package !!\e[0m"
|
echo -e " \e[34m- build-dep \e[1;31mSelect option 1 \e[91m Missing package !!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Check files
|
# Check files
|
||||||
|
|
||||||
if hash figlet 2>/dev/null; then
|
if hash figlet 2>/dev/null; then
|
||||||
echo -e " \e[34m- Figlet \e[32m✔ installed.\e[0m"
|
echo -e " \e[34m- Figlet \e[32m✔ installed."
|
||||||
else
|
else
|
||||||
echo -e " \e[34m- Figlet \e[1;31m Select option 1 \e[91m Missing package !!\e[0m"
|
echo -e " \e[34m- Figlet \e[1;31m Select option 1 \e[91m Missing package !!"
|
||||||
fi
|
fi
|
||||||
if hash ntpd 2>/dev/null; then
|
if hash ntpd 2>/dev/null; then
|
||||||
echo -e " \e[34m- NTP \e[32m✔ installed.\e[0m"
|
echo -e " \e[34m- NTP \e[32m✔ installed."
|
||||||
else
|
else
|
||||||
echo -e " \e[34m- NTP \e[1;31mSelect option 1 \e[91m Missing package !!\e[0m"
|
echo -e " \e[34m- NTP \e[1;31mSelect option 1 \e[91m Missing package !!"
|
||||||
fi
|
fi
|
||||||
if hash make 2>/dev/null; then
|
if hash make 2>/dev/null; then
|
||||||
echo -e " \e[34m- build-essential \e[32m✔ installed.\e[0m"
|
echo -e " \e[34m- build-essential \e[32m✔ installed."
|
||||||
else
|
else
|
||||||
echo -e " \e[34m- build-essential \e[1;31mSelect option 1 \e[91m Missing package !!\e[0m"
|
echo -e " \e[34m- build-essential \e[1;31mSelect option 1 \e[91m Missing package !!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -121,9 +121,9 @@ echo -e " 1. \e[0m(auto) Install Missing Package\e[92m"
|
||||||
echo -e " 2. \e[0mInstallation MOTDs32 script\e[92m"
|
echo -e " 2. \e[0mInstallation MOTDs32 script\e[92m"
|
||||||
echo -e " 3. \e[0mUpdate MOTDs32 script\e[92m"
|
echo -e " 3. \e[0mUpdate MOTDs32 script\e[92m"
|
||||||
echo -e " 4. \e[0mUninstall completly MOTDs32 script\e[92m"
|
echo -e " 4. \e[0mUninstall completly MOTDs32 script\e[92m"
|
||||||
echo -e " 0. \e[0m(Enter or any key) to Quit\n \e[0m"
|
echo -e " 0. \e[0m(Enter or any key) to Quit\n\e[33;3m"
|
||||||
read -p " Enter selection [0-3] or (Enter) to Quit > " selection
|
read -p " Enter selection [0-3] or (Enter) to Quit > " selection
|
||||||
|
echo -e "\e[0m"
|
||||||
|
|
||||||
# Clear area beneath menu
|
# Clear area beneath menu
|
||||||
tput cup 10 0
|
tput cup 10 0
|
||||||
|
|
Loading…
Reference in a new issue