Update install.sh

This commit is contained in:
Erreur32 2017-07-31 19:14:54 +02:00
parent c6a9e90b76
commit f8cb69347f
1 changed files with 4 additions and 4 deletions

View File

@ -158,7 +158,7 @@ tput cup 11 0
fi fi
## Install Crontab ## Install Crontab
if crontab -l | grep -q '/usr/bin/motds32'; then if crontab -l | grep -q '/usr/bin/motds32'; then
echo -e "\e[34m - Cron \e[0m>> already added.\e[0m" echo -e " \e[34m -Cron \e[0m>> already added.\e[0m"
else else
echo -e "\e[34m - Cron added.\e[0m" echo -e "\e[34m - Cron added.\e[0m"
(crontab -l ; echo "*/5 * * * * /usr/bin/motds32 -g 2>1")| crontab - (crontab -l ; echo "*/5 * * * * /usr/bin/motds32 -g 2>1")| crontab -
@ -166,7 +166,7 @@ tput cup 11 0
## Generate first stats ## Generate first stats
if test -f /usr/bin/motds32; then /usr/bin/motds32 -g; fi if test -f /usr/bin/motds32; then /usr/bin/motds32 -g; fi
echo -e "\n\n\e[34m \e[92m completed!\e[0m \n\n\n Help? Use: \n \033[1;30m /usr/bin/motds32\e[0m \n or \033[1;30m\n motd\e[0m\n" echo -e "\n\n\e[34m \e[92m1 completed!\e[0m \n\n\n Help? Use: \n \033[1;30m /usr/bin/motds32\e[0m \n or \033[1;30m\n motd\e[0m\n"
printf "\n \e[1;33m (Press any key to Continue.)\e[0m" printf "\n \e[1;33m (Press any key to Continue.)\e[0m"
;; ;;
2) echo -e "\n\e[92m" 2) echo -e "\n\e[92m"
@ -230,9 +230,9 @@ if test -f /usr/bin/motds32; then /usr/bin/motds32 -g; fi
(crontab -l ; echo "*/5 * * * * /usr/bin/motds32 -g 2>1")| crontab - (crontab -l ; echo "*/5 * * * * /usr/bin/motds32 -g 2>1")| crontab -
fi fi
## Generate first stats ## Generate first stats
if test -f /usr/bin/motds32; then /usr/bin/motds32 -g; echo -e "\n Genrate first stat"; fi if test -f /usr/bin/motds32; then /usr/bin/motds32 -g; fi
echo -e "\n\n\e[34m \e[92m completed!\e[0m \n\n\n Help? Use: \n \033[1;30m /usr/bin/motds32\e[0m \n or \033[1;30m\n motd\e[0m\n" echo -e "\n\n\e[34m \e[92m2 completed!\e[0m \n\n\n Help? Use: \n \033[1;30m /usr/bin/motds32\e[0m \n or \033[1;30m\n motd\e[0m\n"
printf "\n \e[1;33m (Press any key to exit.)\e[0m" printf "\n \e[1;33m (Press any key to exit.)\e[0m"
;; ;;
3) echo -e "\n\e[34m Dsinstallation of in progress... \e[0m" 3) echo -e "\n\e[34m Dsinstallation of in progress... \e[0m"