aurweb/docker/scripts/run-cron.sh
Kevin Morris 068b067e14
feat(docker): log cron executions
Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-11-09 02:28:52 -08:00

14 lines
268 B
Bash
Executable file

#!/bin/bash
cd /aurweb
aurweb-aurblup
if [ $? -eq 0 ]; then
echo "[$(date -u)] executed aurblup" >> /var/log/aurblup.log
fi
aurweb-mkpkglists
if [ $? -eq 0 ]; then
echo "[$(date -u)] executed mkpkglists" >> /var/log/mkpkglists.log
fi
exec /usr/bin/crond -n