Update install.sh

This commit is contained in:
Erreur32 2017-07-20 21:58:29 +02:00
parent 53731dfe48
commit 2472fedd82

View file

@ -110,20 +110,25 @@ stty $old2_stty_cfg
fi fi
## Install Crontab ## Install Crontab
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)
*/5 * * * * /usr/bin/motds32 -g 2>1 if crontab -l | grep -q '/usr/bin/motds32'; then
FIN echo -e "2.\e[92m Cron localized\n"
else
echo "*/5 * * * * root /usr/bin/motds32 -g 2>1" | crontab -
fi
#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" && */5 * * * * root /usr/bin/motds32 -g 2>1
#crontab << FIN
#$(crontab -l)
#
#*/5 * * * * /usr/bin/motds32 -g 2>1
#FIN
## todo ## todo
### MOTDs32 generation (5 min) ### MOTDs32 generation (5 min)
#/5 * * * * /usr/bin/motds32 -g 2>1 #/5 * * * * /usr/bin/motds32 -g 2>1
### ###
## Generate first stats ## Generate first stats
/usr/bin/motds32 -g /usr/bin/motds32 -g