From 639e2758fb3cca1d4f378f281d715296816bfb16 Mon Sep 17 00:00:00 2001 From: "Wile E. Coyote" Date: Fri, 14 Oct 2016 13:44:16 +0000 Subject: [PATCH] Fix Broken last day of month entry in crontab --- modules/rhizo_base/files/etc/cron.d/rhizomatica | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rhizo_base/files/etc/cron.d/rhizomatica b/modules/rhizo_base/files/etc/cron.d/rhizomatica index c333b04..bd55654 100644 --- a/modules/rhizo_base/files/etc/cron.d/rhizomatica +++ b/modules/rhizo_base/files/etc/cron.d/rhizomatica @@ -38,7 +38,7 @@ PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn */10 * * * * root /home/rhizomatica/bin/monitor_freeswitch.sh > /dev/null 2>&1 #Billing - 0 10 * * * root [[ $(date +'%d') -eq $(cal | awk '!/^$/{ print $NF }' | grep -v '^ ' | tail -1) ]] && /var/rhizomatica/bin/active_subscribers.sh + 0 10 * * * root [ $(date +'\%d' -d tomorrow) -eq 1 ] && /var/rhizomatica/bin/active_subscribers.sh #Restart osmo-nitb every 6 hours (This wasn't working anyway. If it is needed, do something more elegant!) # 0 */6 * * * root /usr/bin/sv restart osmo-nitb 2>&1 > /dev/null