owntracks / quicksetup

A (mostly) automated installer for OwnTracks Recorder, Frontend with MQTT and Let's Encrypt
https://owntracks.org/booklet/guide/quicksetup/
9 stars 3 forks source link

Should we configure unattended upgrades? #13

Closed jpmens closed 4 months ago

jpmens commented 5 months ago

I've had good experience with unattended upgrades on Debian/Ubuntu, and I know from several people who say the same.

jpmens commented 4 months ago

It appears to be that Ubuntu jammy has unattended upgrades configured:

Service restarts being deferred:
 systemctl restart unattended-upgrades.service
jpmens commented 4 months ago

On Debian (d1)

sudo apt -qq install -y unattended-upgrades

# have the user decide?
LC_ALL=C sudo dpkg-reconfigure -plow unattended-upgrades

Answering 'no', appears to do nothing. Answering 'y' causes this file to be modified (or even created?)

$ cat /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";

(dpkg reconfigure and 'n', changes 1 to 0)

jpmens commented 4 months ago
unattended-upgrade --dry-run -d

IMO a good documentation about all this (in German): this blog. They also explain how to add a separate repo, e.g. owntracks for ot-recorder

jpmens commented 4 months ago

I've decided if the OS configures them, such as on Ubuntu, that's fine. For others we might revisit this in future if we're requested to, but I'm not going to implement this now.