From 2a7ab4bbe7edfeed7d8ec6a08feb1c9ad8ab2b77 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Tue, 25 Jul 2017 12:36:58 +0100 Subject: [PATCH] run cron jobs every minute --- getip.sh | 4 ++-- setip.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/getip.sh b/getip.sh index ebe6bdc..cce2721 100755 --- a/getip.sh +++ b/getip.sh @@ -125,8 +125,8 @@ function setCron () { echo "@reboot curl -s $VDMSCRIPT | bash" >> $VDMHOME/$ACTION.cron fi # check if the @reboot curl -s $VDMSCRIPT | sudo bash is already set - if [[ $currentCron != *"*/7 * * * * curl -s $VDMSCRIPT | bash"* ]]; then - echo "*/7 * * * * curl -s $VDMSCRIPT | bash" >> $VDMHOME/$ACTION.cron + if [[ $currentCron != *"* * * * * curl -s $VDMSCRIPT | bash"* ]]; then + echo "* * * * * curl -s $VDMSCRIPT | bash" >> $VDMHOME/$ACTION.cron fi # set the user cron crontab -u $VDMUSER $VDMHOME/$ACTION.cron diff --git a/setip.sh b/setip.sh index f3eefec..007ed5e 100755 --- a/setip.sh +++ b/setip.sh @@ -118,8 +118,8 @@ function setCron () { echo "@reboot curl -s $VDMSCRIPT | bash" >> $VDMHOME/$ACTION.cron fi # check if the @reboot curl -s $VDMSCRIPT | sudo bash is already set - if [[ $currentCron != *"*/5 * * * * curl -s $VDMSCRIPT | bash"* ]]; then - echo "*/5 * * * * curl -s $VDMSCRIPT | bash" >> $VDMHOME/$ACTION.cron + if [[ $currentCron != *"* * * * * curl -s $VDMSCRIPT | bash"* ]]; then + echo "* * * * * curl -s $VDMSCRIPT | bash" >> $VDMHOME/$ACTION.cron fi # set the user cron crontab -u $VDMUSER $VDMHOME/$ACTION.cron