Update install.sh

This commit is contained in:
Erreur32 2017-07-21 01:16:57 +02:00
parent aa26a92cb8
commit da722bfba1

View file

@ -100,8 +100,8 @@ if [ -f /usr/bin/motd ]
fi fi
echo -e " -->\e[34m Copy files OK\n" echo -e " -->\e[34m Copy files OK\n"
echo -ne '######### (50%)\r\n' echo -ne '######### (50%)\r'
echo -e "\n"
echo -e "\nDo you wish to install the required package?\n \e[0m --> apt-get install ntp figlet ? (y/n) " echo -e "\nDo you wish to install the required package?\n \e[0m --> apt-get install ntp figlet ? (y/n) "
old_stty_cfg=$(stty -g) old_stty_cfg=$(stty -g)
stty raw -echo stty raw -echo
@ -129,7 +129,9 @@ stty $old2_stty_cfg
exit 1 exit 1
fi fi
fi fi
echo -ne '################ (80%)\r'
echo -ne '##################(90%)\r'
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
@ -153,7 +155,8 @@ fi
## Generate first stats ## Generate first stats
/usr/bin/motds32 -g /usr/bin/motds32 -g
echo -ne '####################### (100%)\r'
echo -ne '####################### (100%)\r\n\n'
echo -e "\n\e[34m \e[92m completed!\e[0m \n\nUse: /usr/bin/motds32 for help\n" echo -e "\n\e[34m \e[92m completed!\e[0m \n\nUse: /usr/bin/motds32 for help\n"
exit 0 exit 0