X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=distro-end;h=9d3f6f5048e9c33529e736366912f327f7a2ed73;hb=7c40848349654f32903ce11d14337b01e740ff89;hp=b54285878e17a743de221ca36550294640aa5dda;hpb=23a824d2e65674d73c8748b537fa0f3995113e94;p=distro-setup diff --git a/distro-end b/distro-end index b542858..9d3f6f5 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' @@ -874,8 +886,8 @@ fi # sakura config is owned by ian reset-sakura reset-konsole -sudo -u traci -i reset-konsole -# traci xscreensaver we don't want to reset +sudo -u user2 -i reset-konsole +# user2 xscreensaver we don't want to reset reset-xscreensaver @@ -1036,10 +1048,41 @@ EOF cd $t aptitude download debootstrap/xenial ex * - ex data.tar.gz s cp ./usr/share/debootstrap/scripts/* /usr/share/debootstrap/scripts - ;; + + s dd of=/etc/apt/preferences.d/flidas-etiona <$t <