diff --git a/build.sh b/build.sh index f3f7a7b..2f842fb 100755 --- a/build.sh +++ b/build.sh @@ -34,6 +34,7 @@ read -r -d '' DEPENDS <<- DEPENDS --depends php8.3-xml --depends software-properties-common --depends sudo + --depends cron --depends supervisor --depends telegraf DEPENDS diff --git a/root/etc/cron.daily/apt-upgrade b/root/etc/cron.daily/apt-upgrade new file mode 100644 index 0000000..541808e --- /dev/null +++ b/root/etc/cron.daily/apt-upgrade @@ -0,0 +1,12 @@ +#!/bin/sh + +# Keep everything up to date! +# This crontab is part of the notifiarr-worker package. + +DEBIAN_FRONTEND=noninteractive +LOGDIR="/var/log/apt-output" + +mkdir -p "${LOGDIR}" + +/usr/bin/apt update > "${LOGDIR}/update.log" 2>&1 +/usr/bin/apt upgrade -y > "${LOGDIR}/upgrade.log" 2>&1