Update Install.sh

This commit is contained in:
Erreur32 2017-07-20 15:49:10 +02:00
parent a11d4d506f
commit 855f66bfd1

View file

@ -65,14 +65,15 @@ stty raw -echo
answer=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done ) answer=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done )
stty $old_stty_cfg stty $old_stty_cfg
if echo "$answer" | grep -iq "^y" ;then if echo "$answer" | grep -iq "^y" ;then
echo -e "\n \e[92mOK installation of\e[0m ntp figlet \e[92m start\e[0m " ; apt-get install -y ntp figlet; make install echo -e "\n \e[92m installation \e[0m ntp figlet \e[92m start\e[0m \n" ; apt-get install -y ntp figlet; make install
echo -e "\n \e[92m apt-get installation \e[0m Done \n"
else else
echo -e "\n \e[91m No \e[0m continue installation"; make install echo -e "\n \e[91m No \e[0m continue installation"; make install
fi fi
echo -e "\n"
## Install Crontab ## Install Crontab
echo -e "\n Add ENTRY in \e[92mROOT crontab\e[0m (generation each 5 minutes)\n"
crontab << FIN crontab << FIN
$(crontab -l) $(crontab -l)
@ -82,9 +83,11 @@ $(crontab -l)
### ###
FIN FIN
echo -e "\n 2.\e[92mROOT crontab\e[0m ADD (generation each 5 minutes)\n"
## Generate first stats ## Generate first stats
/usr/bin/motds32 -g /usr/bin/motds32 -g
echo -e "\n \e[92mInstallation successfull !!\e[0m \nuse /usr/bin/motds32 for any help" echo -e "\n \e[92mInstallation successfull !!\e[0m \n Use: /usr/bin/motds32 for any help"
#EOF #EOF