From 7b7570c884da65efbc7169ff47fc8a716a7dffd6 Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Thu, 20 Jul 2017 20:48:03 +0200 Subject: [PATCH] Update Install.sh --- Install.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Install.sh b/Install.sh index 2f56524..7684a2e 100755 --- a/Install.sh +++ b/Install.sh @@ -111,12 +111,7 @@ fi ## Install Crontab -set -f -if crontab -l | grep -q '^/usr/bin/motds32$' && echo 'entry exists'; then - echo -e '\nCrontab entry already exist' -else - echo -e '\nCrontab entry does not exist ...' -crontab << FIN +crontab -l | grep -q '/usr/bin/motds32' && echo 'entry exists' || echo -e "2.\e[92m Cron add ==> \e[0m */5 * * * * /usr/bin/motds32 -g 2>1 \e[92m (generate each 5 minutes)\n" && crontab << FIN $(crontab -l) ### MOTDs32 generation (5 min) @@ -124,11 +119,6 @@ $(crontab -l) ### FIN -echo -e "2.\e[92m crontab -e ROOT\e[0m ADD (generate each 5 minutes)\n" -fi -set +f - - ## Generate first stats