home · contact · privacy
Send TODO mail to user on server postinstall script finish.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 8 Oct 2015 20:19:36 +0000 (22:19 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 8 Oct 2015 20:19:36 +0000 (22:19 +0200)
bin/simplemail.sh [new file with mode: 0755]
jessie_start_server.sh
mails/server_postinstall_finished [new file with mode: 0644]

diff --git a/bin/simplemail.sh b/bin/simplemail.sh
new file mode 100755 (executable)
index 0000000..6cbc552
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# This mails to user plom the message in the file named by the first parameter,
+# decoded with the first line as subject and everything below the second line
+# as the message body. The subject line MUST NOT contain '"' double quotes.
+
+subject=`head -1 $1`
+body=`tail -n +2 $1`
+echo $body | mutt -s "$subject" plom
index 4a2e4af5f0a7008e9b49bd5549f249c989e8b3a5..7141a42ffda2be0d6124930fbcee83c5df76ddcc 100755 (executable)
@@ -109,6 +109,9 @@ systemctl enable /etc/systemd/system/irssi.service
 # Clean up.
 rm jessie_start_server.sh
 
+# Send instructions mail.
+config/bin/simplemail.sh config/mails/server_postinstall_finished
+
 # Set password for user.
 passwd plom
 
diff --git a/mails/server_postinstall_finished b/mails/server_postinstall_finished
new file mode 100644 (file)
index 0000000..5d318d9
--- /dev/null
@@ -0,0 +1,7 @@
+Server post-installation TODO
+
+The server post-installation script seems to have run successfully. Remember to
+perform the following tasks:
+
+- once when mail system set-up seems stable, in
+   config/dotfiles_user_server/getmail/getmailrc, set [options] delete = true