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 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