From 20eaa7800da12bb23caf9a67338ff4acf7633bc4 Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Thu, 20 Jul 2017 18:59:42 +0200 Subject: [PATCH] Update Install.sh --- Install.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Install.sh b/Install.sh index ce13ad0..a8c4955 100755 --- a/Install.sh +++ b/Install.sh @@ -107,8 +107,9 @@ answer2=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done ) fi ## Install Crontab -echo -e "check if entry exist in CRON" -if crontab -l | grep -q '^/usr/bin/motds32$' && echo 'entry exists' ; then +echo -e "check if entry exist in YOUR CRONTAB" + +if crontab -l | grep -q '^/usr/bin/motds32$' && echo 'entry exists' ; crontab << FIN $(crontab -l) @@ -117,12 +118,8 @@ $(crontab -l) */5 * * * * /usr/bin/motds32 -g 2>1 ### FIN - -else -echo 'entry does not exist, it will add' - -fi - + || echo 'entry does not exist, it will add' + echo -e "2.\e[92m crontab -e ROOT\e[0m ADD (generate each 5 minutes)\n" ## Generate first stats