Update Install.sh
This commit is contained in:
parent
06ca074e4d
commit
1abbfb6372
1 changed files with 8 additions and 4 deletions
10
Install.sh
10
Install.sh
|
@ -107,16 +107,20 @@ fi
|
||||||
## Install Crontab
|
## Install Crontab
|
||||||
echo -e "check if entry exist in YOUR CRONTAB"
|
echo -e "check if entry exist in YOUR CRONTAB"
|
||||||
|
|
||||||
if crontab -l | grep -q '^/usr/bin/motds32$' && echo 'entry exists' ;
|
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
|
crontab << FIN fi
|
||||||
$(crontab -l)
|
$(crontab -l)
|
||||||
|
|
||||||
### MOTDs32 generation (5 min)
|
### MOTDs32 generation (5 min)
|
||||||
*/5 * * * * /usr/bin/motds32 -g 2>1
|
*/5 * * * * /usr/bin/motds32 -g 2>1
|
||||||
###
|
###
|
||||||
FIN
|
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"
|
echo -e "2.\e[92m crontab -e ROOT\e[0m ADD (generate each 5 minutes)\n"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue