]> Frank Brehm's Git Trees - config/weimar/etc.git/commitdiff
Current state
authorFrank Brehm <frank.brehm@profitbricks.com>
Fri, 9 Oct 2015 08:45:19 +0000 (10:45 +0200)
committerFrank Brehm <frank.brehm@profitbricks.com>
Fri, 9 Oct 2015 08:45:19 +0000 (10:45 +0200)
.etckeeper
.gitignore
cron.daily/etckeeper [new file with mode: 0755]
motd [deleted file]

index 6e52a1e5d70906680f5e188b4ee2122aec7e849f..c6f05cd3aabee41ab6cfd4cbc371e722c1573ea7 100755 (executable)
@@ -683,7 +683,6 @@ maybe chmod 0644 'mlocate-cron.conf'
 maybe chmod 0755 'modprobe.d'
 maybe chmod 0644 'modprobe.d/aliases.conf'
 maybe chmod 0644 'modprobe.d/i386.conf'
-maybe chmod 0644 'motd'
 maybe chmod 0644 'motd.tail'
 maybe chmod 0755 'mysql'
 maybe chmod 0644 'mysql/my.cnf'
index 0986781f7501cae476487815958e75b8d64cea64..615f3e92c228f5c5490fb604497fc8dc20c7a7b1 100644 (file)
@@ -49,3 +49,5 @@ fake-hwclock.data
 DEADJOE
 
 # end section managed by etckeeper
+
+motd
diff --git a/cron.daily/etckeeper b/cron.daily/etckeeper
new file mode 100755 (executable)
index 0000000..5255691
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+set -e
+if [ -x /usr/bin/etckeeper ] && [ -e /etc/etckeeper/etckeeper.conf ]; then
+       . /etc/etckeeper/etckeeper.conf
+       if [ "$AVOID_DAILY_AUTOCOMMITS" != "1" ]; then
+               # avoid autocommit if an install run is in progress
+               lockfile=/var/cache/etckeeper/packagelist.pre-install
+               if [ -e "$lockfile" ] && [ -n "$(find "$lockfile" -mtime +1)" ]; then
+                       rm -f "$lockfile" # stale
+               fi
+               if [ ! -e "$lockfile" ]; then
+                       AVOID_SPECIAL_FILE_WARNING=1
+                       export AVOID_SPECIAL_FILE_WARNING
+                       if etckeeper unclean; then
+                               etckeeper commit "daily autocommit" >/dev/null
+                       fi
+               fi
+       fi
+fi
diff --git a/motd b/motd
deleted file mode 100644 (file)
index 9c75c83..0000000
--- a/motd
+++ /dev/null
@@ -1,14 +0,0 @@
-Linux weimar 4.0.5-gentoo #1 SMP Tue Jun 30 20:13:36 CEST 2015 x86_64 Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz GenuineIntel GNU/Linux
-Gentoo Base System release 2.2
-__        __   _                      
-\ \      / /__(_)_ __ ___   __ _ _ __ 
- \ \ /\ / / _ \ | '_ ` _ \ / _` | '__|
-  \ V  V /  __/ | | | | | | (_| | |   
-   \_/\_/ \___|_|_| |_| |_|\__,_|_|   
-                                      
-
-Es liegt in der menschlichen Natur, vernünftig zu denken und unlogisch
-zu handeln.
-
-Today is Boomtime, the 63rd day of Bureaucracy in the YOLD 3181
-