home · contact · privacy
Extend sysadmin mailing tasks.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 9 Oct 2015 13:47:23 +0000 (15:47 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 9 Oct 2015 13:47:23 +0000 (15:47 +0200)
jessie_start_server.sh
mails/server_postinstall_finished
mails/update_reminder [new file with mode: 0644]

index 63dd4ad215a70c14274aed4c5275ec1e9bb06730..d3af7fbfe515b4a2f398f71abebe5e2db245d5d6 100755 (executable)
@@ -98,6 +98,10 @@ cp config/systemfiles/aliases /etc/aliases
 newaliases
 service postfix restart
 
+# Set up regular system update reminder.
+apt-get -y install cron
+su plom -c "echo '0 0 * * 0 ~/config/bin/simplemail.sh ~/config/mails/update_reminder' | crontab -"
+
 # Set up screen.
 apt-get -y install screen
 
index 92131b489239d0aea482b0761fa98569a25c3262..45b82c1e6b8c2805ebf2126b57998714f535cb01 100644 (file)
@@ -1,4 +1,4 @@
-Server post-installation TODO
+[SYSADMIN] Server post-installation TODO
 
 The server post-installation script seems to have run successfully. Remember to
 perform the following tasks:
diff --git a/mails/update_reminder b/mails/update_reminder
new file mode 100644 (file)
index 0000000..81dd02c
--- /dev/null
@@ -0,0 +1,7 @@
+[SYSADMIN] System updating reminder
+
+This is your regular reminder to run:
+
+apt-get update
+apt-get upgrade
+apt-get dist-upgrade