We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b92c7b5 + dc9d0fd commit fca47b5Copy full SHA for fca47b5
2 files changed
root/etc/cron.daily/apt-upgrade
root/etc/cron.weekly/apt-upgrade
@@ -0,0 +1,20 @@
1
+#!/bin/sh
2
+
3
+# Keep everything up to date!
4
+# This crontab is part of the notifiarr-forest package.
5
6
+LOGDIR="/var/log/apt-output"
7
+SUFFIX=$(date +%Y%m%d)
8
9
+mkdir -p "${LOGDIR}"
10
11
+# Delete logs older than 200 days.
12
+find "${LOGDIR}" -type f -mtime +200 -delete
13
14
+export DEBIAN_FRONTEND=noninteractive
15
16
+/usr/bin/apt update > "${LOGDIR}/update-${SUFFIX}.log" 2>&1
17
+/usr/bin/apt \
18
+ -o Dpkg::Options::="--force-confold" \
19
+ -o Dpkg::Options::="--force-confdef" \
20
+ upgrade -y > "${LOGDIR}/upgrade-${SUFFIX}.log" 2>&1
0 commit comments