Update Install.sh
This commit is contained in:
parent
ebbb0ff99f
commit
7b7570c884
1 changed files with 1 additions and 11 deletions
12
Install.sh
12
Install.sh
|
@ -111,12 +111,7 @@ fi
|
||||||
|
|
||||||
## Install Crontab
|
## Install Crontab
|
||||||
|
|
||||||
set -f
|
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
|
||||||
if crontab -l | grep -q '^/usr/bin/motds32$' && echo 'entry exists'; then
|
|
||||||
echo -e '\nCrontab entry already exist'
|
|
||||||
else
|
|
||||||
echo -e '\nCrontab entry does not exist ...'
|
|
||||||
crontab << FIN
|
|
||||||
$(crontab -l)
|
$(crontab -l)
|
||||||
|
|
||||||
### MOTDs32 generation (5 min)
|
### MOTDs32 generation (5 min)
|
||||||
|
@ -124,11 +119,6 @@ $(crontab -l)
|
||||||
###
|
###
|
||||||
FIN
|
FIN
|
||||||
|
|
||||||
echo -e "2.\e[92m crontab -e ROOT\e[0m ADD (generate each 5 minutes)\n"
|
|
||||||
fi
|
|
||||||
set +f
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Generate first stats
|
## Generate first stats
|
||||||
|
|
Loading…
Reference in a new issue