summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-10-04 01:04:21 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2012-10-04 01:04:21 +0200
commit168639ab5ae9e369a4a8fbeee12c52846ba35633 (patch)
treec46fcd26c5c919a7c61705eee685d1b95e95badb
parent6f73adafe1abdebc65fea82dd8ae05a0ceb0141b (diff)
downloadupdate-motd-master.tar.gz
update-motd-master.tar.bz2
update-motd-master.zip
add file for cron.dHEADmaster
-rw-r--r--etc/update-motd.cron2
-rwxr-xr-xsbin/update-motd (renamed from update-motd)0
2 files changed, 2 insertions, 0 deletions
diff --git a/etc/update-motd.cron b/etc/update-motd.cron
new file mode 100644
index 0000000..b6cb06a
--- /dev/null
+++ b/etc/update-motd.cron
@@ -0,0 +1,2 @@
+# update /etc/motd if needed with data from /var/log/changes
+* * * * * root /usr/bin/lockrun --lockfile=/var/lock/update-motd.lockrun -- /usr/local/bin/update-motd
diff --git a/update-motd b/sbin/update-motd
index 50748d0..50748d0 100755
--- a/update-motd
+++ b/sbin/update-motd