Update Install.sh
This commit is contained in:
parent
a984615b81
commit
00d12caac8
1 changed files with 7 additions and 0 deletions
|
@ -107,6 +107,8 @@ answer2=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done )
|
|||
fi
|
||||
|
||||
## Install Crontab
|
||||
echo -e "check if entry exist in CRON"
|
||||
if crontab -l | grep -q 'search string' && echo 'entry exists' ; then
|
||||
|
||||
crontab << FIN
|
||||
$(crontab -l)
|
||||
|
@ -116,6 +118,11 @@ $(crontab -l)
|
|||
###
|
||||
FIN
|
||||
|
||||
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"
|
||||
|
||||
## Generate first stats
|
||||
|
|
Loading…
Reference in a new issue