Update install.sh

This commit is contained in:
Erreur32 2017-07-26 16:33:25 +02:00
parent 47cc031d73
commit e457258fc1

View file

@ -92,7 +92,7 @@ if [ -f "/usr/share/figlet" ]
cp -Rf fonts/chunky.flf /usr/share/figlet/ cp -Rf fonts/chunky.flf /usr/share/figlet/
fi fi
# Check if MOTDs32 is already add
if [ -f "/etc/motds32/Stats32" ] if [ -f "/etc/motds32/Stats32" ]
then then
echo -e " -->\e[34m Stats32 \e[92mFOUND\e[0m" echo -e " -->\e[34m Stats32 \e[92mFOUND\e[0m"
@ -102,12 +102,12 @@ if [ -f "/etc/motds32/Stats32" ]
echo -e " -->\e[34m Stats32 \e[92mINSTALLED\e[0m" echo -e " -->\e[34m Stats32 \e[92mINSTALLED\e[0m"
fi fi
# Check files
echo -e " -->\e[34m Check files: \e[92mOK\n" echo -e " -->\e[34m Check files: \e[92mOK\n"
#echo -ne '\e[0m #########(50%)\r' #echo -ne '\e[0m #########(50%)\r'
#sleep 1 #sleep 1
#echo -ne "\n" #echo -ne "\n"
echo -e "\nDo you wish to install the required package?\n \e[0m --> apt-get install ntp figlet build-essential ? (y/n) " echo -e "\nDo you wish to install the required package?\n \e[0m --> apt-get install ntp figlet build-essential ? (y/n) "
old_stty_cfg=$(stty -g) old_stty_cfg=$(stty -g)
stty raw -echo stty raw -echo
@ -146,7 +146,7 @@ stty $old2_stty_cfg
fi fi
# Check motd
if [ -f "/usr/bin/motd" ] if [ -f "/usr/bin/motd" ]
then then
echo -e " -->\e[34m motd check \e[92mOK\e[0m\n" echo -e " -->\e[34m motd check \e[92mOK\e[0m\n"
@ -159,6 +159,8 @@ fi
#echo -ne '\e[0m ##################(90%)\r' #echo -ne '\e[0m ##################(90%)\r'
#sleep 1 #sleep 1
#echo -e "\n" #echo -e "\n"
## Install Crontab ## Install Crontab
if crontab -l | grep -q '/usr/bin/motds32'; then if crontab -l | grep -q '/usr/bin/motds32'; then