Update Install.sh

This commit is contained in:
Erreur32 2017-07-20 19:10:30 +02:00
parent 06ca074e4d
commit 1abbfb6372
1 changed files with 8 additions and 4 deletions

View File

@ -107,16 +107,20 @@ fi
## Install Crontab
echo -e "check if entry exist in YOUR CRONTAB"
if crontab -l | grep -q '^/usr/bin/motds32$' && echo 'entry exists' ;
crontab << FIN
if crontab -l | grep -q '^/usr/bin/motds32$' && echo 'entry exists'
then
echo 'entry already exist'
else
echo 'entry does not exist, it will add'
crontab << FIN fi
$(crontab -l)
### MOTDs32 generation (5 min)
*/5 * * * * /usr/bin/motds32 -g 2>1
###
FIN
|| echo 'entry does not exist, it will add'
echo -e "2.\e[92m crontab -e ROOT\e[0m ADD (generate each 5 minutes)\n"