mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(docker): log cron executions
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
0403b89f53
commit
068b067e14
2 changed files with 9 additions and 2 deletions
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue