forked from axiom-team/astrXbian
NOT LOGGING TO FILE >> /tmp/astroport.log (TO MUCH DATA)
This commit is contained in:
parent
6ce99720a1
commit
d1c2392c42
|
@ -24,7 +24,8 @@ awk -i inplace -v rmv="cron_MINUTE" '!index($0,rmv)' /tmp/mycron && echo "Astrop
|
||||||
crontest=$(cat /tmp/mycron | grep -F 'cron_MINUTE')
|
crontest=$(cat /tmp/mycron | grep -F 'cron_MINUTE')
|
||||||
# ADD cron_MINUTE.sh TO cron ?
|
# ADD cron_MINUTE.sh TO cron ?
|
||||||
if [[ ! $crontest ]]; then
|
if [[ ! $crontest ]]; then
|
||||||
echo "* * * * * $MY_PATH/../cron_MINUTE.sh >> /tmp/astroport.log 2>&1>/dev/null" >> /tmp/mycron && crontab /tmp/mycron \
|
# NOT LOGGING TO FILE >> /tmp/astroport.log (TO MUCH DATA)
|
||||||
|
echo "* * * * * $MY_PATH/../cron_MINUTE.sh 2>&1>/dev/null" >> /tmp/mycron && crontab /tmp/mycron \
|
||||||
else
|
else
|
||||||
echo "No operation needed. Your crontab is: " && crontab -l
|
echo "No operation needed. Your crontab is: " && crontab -l
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue