From 48973fe036b982eff3e6db9339c9e195d7bd6cf8 Mon Sep 17 00:00:00 2001 From: Hunter Wittenborn Date: Tue, 14 Dec 2021 16:56:29 -0600 Subject: [PATCH 1/2] Fixed incorrect syntax usage and missing environment variables in cron jobs --- docker/config/aurweb-cron | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/config/aurweb-cron b/docker/config/aurweb-cron index 149b9d19..0d1d9285 100644 --- a/docker/config/aurweb-cron +++ b/docker/config/aurweb-cron @@ -1,2 +1,3 @@ -*/5 * * * * bash -c 'aurweb-aurblup && echo "[$(date -u)] executed aurblup" >> /var/log/mkpkglists.log' -*/5 * * * * bash -c 'aurweb-mkpkglists --extended && echo "[$(date -u)] executed mkpkglists" >> /var/log/mkpkglists.log' +AUR_CONFIG='/aurweb/conf/config' +*/5 * * * * root bash -c 'aurweb-aurblup && echo "[$(date -u)] executed aurblup" >> /var/log/mkpkglists.log' +*/5 * * * * root bash -c 'aurweb-mkpkglists --extended && echo "[$(date -u)] executed mkpkglists" >> /var/log/mkpkglists.log' From 2e12417a6c43acd137e82a060aa17633abc179d5 Mon Sep 17 00:00:00 2001 From: Hunter Wittenborn Date: Tue, 14 Dec 2021 17:02:36 -0600 Subject: [PATCH 2/2] Added '-x proc' flag to 'crond' command --- docker/scripts/run-cron.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/scripts/run-cron.sh b/docker/scripts/run-cron.sh index 83ad6566..03bc55ff 100755 --- a/docker/scripts/run-cron.sh +++ b/docker/scripts/run-cron.sh @@ -11,4 +11,4 @@ if [ $? -eq 0 ]; then echo "[$(date -u)] executed mkpkglists" >> /var/log/mkpkglists.log fi -exec /usr/bin/crond -n +exec /usr/bin/crond -nx proc