crontab is

This commit is contained in:
qo-op 2020-05-09 20:32:58 +02:00
parent 13a376d128
commit a53aece7eb
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ crontest=$(cat /tmp/mycron | grep -F 'cron_MINUTE')
if [[ ! $crontest ]]; then
echo "* * * * * $MY_PATH/../cron_MINUTE.sh >> /tmp/astroport.log 2>&1" >> /tmp/mycron && crontab /tmp/mycron \
else
echo "Cannot operate, please check crontab -l" && exit 1
echo "No operation needed. Your crontab is: " && crontab -l
fi
# Clean
rm -f /tmp/mycron