home · contact · privacy
Extend sysadmin mailing tasks.
[config] / jessie_start_server.sh
index d3d536716abe2f36482d524599fbe91b138d7ed6..d3af7fbfe515b4a2f398f71abebe5e2db245d5d6 100755 (executable)
@@ -83,10 +83,7 @@ mkdir -p .vimbackups
 su plom -c 'mkdir -p /home/plom/.vimbackups/'
 
 # Set up ssh-guard.
-apt-get -y install sshguard rsyslog iptables-persistent
-iptables -N sshguard
-iptables -A INPUT -j sshguard
-iptables save > /etc/iptables/rules.v4
+apt-get -y install sshguard rsyslog
 
 # Set up openssh-server.
 apt-get -y install openssh-server
@@ -101,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