X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=distro-end;h=91c7a832ebd0b5e5af1d9b2eae1bbe08d172b200;hp=b54285878e17a743de221ca36550294640aa5dda;hb=7cc6197f74e97cb522894046718712cd03d3d385;hpb=23a824d2e65674d73c8748b537fa0f3995113e94 diff --git a/distro-end b/distro-end index b542858..91c7a83 100755 --- a/distro-end +++ b/distro-end @@ -181,6 +181,18 @@ sgo certbotmail.timer pi ${p1[@]} +##### begin automatic upgrades #### +# this makes it so we upgrade everything +debconf-set-selections <<'EOF' +unattended-upgrades unattended-upgrades/origins_pattern string "codename=${distro_codename}"; +EOF +dpkg-reconfigure -u -fnoninteractive unattended-upgrades + +# Setup daily reboots, so all unattended upgrades go into affect +# unattended upgrades happen at 6 am + rand(60 min). +echo '20 7 * * * root /usr/local/bin/zelous-unattended-reboot' >/etc/cron.d/unattended-upgrade-reboot +##### end automatic upgrades #### + ## prometheus node exporter setup web-conf -f 9100 -p 9101 apache2 $(hostname -f) <<'EOF' @@ -1306,8 +1318,11 @@ EOF rpc_pass=$(