Update Install.sh

This commit is contained in:
Erreur32 2017-07-20 20:48:03 +02:00
parent ebbb0ff99f
commit 7b7570c884
1 changed files with 1 additions and 11 deletions

View File

@ -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