From 711daf859452dab0f367462deaf4ba2d5f20cad4 Mon Sep 17 00:00:00 2001 From: Thomas Bloor Date: Mon, 26 Mar 2018 14:26:02 +0100 Subject: [PATCH 1/2] Added new Daily Cron script --- script/cron_daily | 10 ++++++++++ script/recalc_leaderboards | 5 ----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 script/cron_daily delete mode 100755 script/recalc_leaderboards diff --git a/script/cron_daily b/script/cron_daily new file mode 100644 index 0000000..1f53201 --- /dev/null +++ b/script/cron_daily @@ -0,0 +1,10 @@ +#! /bin/bash + +# Scripts to run daily. +# This will be run sometime between 2 & 3AM every morning. +# If order matters, make sure they are in the right place. + +eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) + +MOJO_MODE=production ./script/pear-local_loop recur_transactions --force +MOJO_MODE=production ./script/pear-local_loop recalc_leaderboards diff --git a/script/recalc_leaderboards b/script/recalc_leaderboards deleted file mode 100755 index 73ce46c..0000000 --- a/script/recalc_leaderboards +++ /dev/null @@ -1,5 +0,0 @@ -#! /bin/bash - -eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) - -MOJO_MODE=production ./script/pear-local_loop recalc_leaderboards From 483ea471772f99cbf0595f889829f9283d405255 Mon Sep 17 00:00:00 2001 From: Thomas Bloor Date: Mon, 26 Mar 2018 14:27:04 +0100 Subject: [PATCH 2/2] Updated Changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a033783..b673ce8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ # Next Release +* Added `cron_daily` script for holding all daily cronjobs * **Admin Fix** Parse currency without a currency symbol on import * **Admin Fix** Fix large CSV issue on import * Use custom secrets for encryption