From 2472fedd82abe8045fc6e1f180092bddec22be87 Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Thu, 20 Jul 2017 21:58:29 +0200 Subject: [PATCH] Update install.sh --- install.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 628cd35..c384dc5 100755 --- a/install.sh +++ b/install.sh @@ -110,20 +110,25 @@ stty $old2_stty_cfg fi ## 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 -FIN +if crontab -l | grep -q '/usr/bin/motds32'; then +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 ### MOTDs32 generation (5 min) #/5 * * * * /usr/bin/motds32 -g 2>1 ### - ## Generate first stats /usr/bin/motds32 -g