/bin/bash

This commit is contained in:
qo-op 2021-03-06 21:03:23 +01:00
parent 928948fdab
commit 216d937e10
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ if [[ ! $crontest ]]; then
[[ ! $(cat /tmp/mycron | grep -F 'SHELL') ]] && echo "SHELL=/bin/bash" >> /tmp/newcron
[[ ! $(cat /tmp/mycron | grep -F 'PATH') ]] && echo "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" >> /tmp/newcron
cat /tmp/mycron >> /tmp/newcron
echo "* * * * * $MY_PATH/../cron_MINUTE.sh 2>&1>/dev/null" >> /tmp/newcron
echo "* * * * * /bin/bash $MY_PATH/../cron_MINUTE.sh 2>&1>/dev/null" >> /tmp/newcron
crontab /tmp/newcron
else
echo "No operation needed. Your crontab is: " && crontab -l