feat(docker): log cron executions

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-09 02:28:52 -08:00
parent 0403b89f53
commit 068b067e14
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 9 additions and 2 deletions

View file

@ -1,2 +1,2 @@
*/5 * * * * aurweb-aurblup */5 * * * * bash -c 'aurweb-aurblup && echo "[$(date -u)] executed aurblup" >> /var/log/mkpkglists.log'
*/5 * * * * aurweb-mkpkglists */5 * * * * bash -c 'aurweb-mkpkglists && echo "[$(date -u)] executed mkpkglists" >> /var/log/mkpkglists.log'

View file

@ -2,6 +2,13 @@
cd /aurweb cd /aurweb
aurweb-aurblup aurweb-aurblup
if [ $? -eq 0 ]; then
echo "[$(date -u)] executed aurblup" >> /var/log/aurblup.log
fi
aurweb-mkpkglists aurweb-mkpkglists
if [ $? -eq 0 ]; then
echo "[$(date -u)] executed mkpkglists" >> /var/log/mkpkglists.log
fi
exec /usr/bin/crond -n exec /usr/bin/crond -n