Update Install.sh
This commit is contained in:
parent
c5ed3ad776
commit
20eaa7800d
1 changed files with 5 additions and 8 deletions
13
Install.sh
13
Install.sh
|
@ -107,8 +107,9 @@ answer2=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Install Crontab
|
## Install Crontab
|
||||||
echo -e "check if entry exist in CRON"
|
echo -e "check if entry exist in YOUR CRONTAB"
|
||||||
if crontab -l | grep -q '^/usr/bin/motds32$' && echo 'entry exists' ; then
|
|
||||||
|
if crontab -l | grep -q '^/usr/bin/motds32$' && echo 'entry exists' ;
|
||||||
|
|
||||||
crontab << FIN
|
crontab << FIN
|
||||||
$(crontab -l)
|
$(crontab -l)
|
||||||
|
@ -117,12 +118,8 @@ $(crontab -l)
|
||||||
*/5 * * * * /usr/bin/motds32 -g 2>1
|
*/5 * * * * /usr/bin/motds32 -g 2>1
|
||||||
###
|
###
|
||||||
FIN
|
FIN
|
||||||
|
|| echo 'entry does not exist, it will add'
|
||||||
else
|
|
||||||
echo 'entry does not exist, it will add'
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -e "2.\e[92m crontab -e ROOT\e[0m ADD (generate each 5 minutes)\n"
|
echo -e "2.\e[92m crontab -e ROOT\e[0m ADD (generate each 5 minutes)\n"
|
||||||
|
|
||||||
## Generate first stats
|
## Generate first stats
|
||||||
|
|
Loading…
Reference in a new issue