various fixes
[distro-setup] / distro-end
index 317852291a0d21fb83764c2d7225f0c5a0f5dd66..87a54e3af75a4bd81230f907fd3f61924b60f267 100755 (executable)
@@ -393,8 +393,13 @@ s rm -f /etc/cron.d/unattended-upgrade-reboot /usr/local/bin/zelous-unattended-r
 sd /etc/cron.d/myupgrade <<'EOF'
 # Setup reboots when running outdated stuff, unattended upgrades happen
 # at 6 am + rand(60 min).
-20 7 * * * root /usr/local/bin/myupgrade | /usr/local/bin/log-once -1 myupgrade
-0 * * * * root /usr/local/bin/mycheckrestart | /usr/local/bin/log-once -1 mycheckrestart
+
+# default is /bin/sh
+SHELL=/bin/bash
+# default is /usr/bin:/bin
+PATH=/usr/bin:/bin:/usr/local/bin
+20 7 * * * iank myupgrade |& log-once -1 myupgrade
+0  * * * * root mycheckrestart |& log-once -1 mycheckrestart
 EOF
 ##### end automatic upgrades ####