Permalink
Browse files

Manage etckeeper.conf via fabric

  • Loading branch information...
derf committed Apr 6, 2011
1 parent 23b3ca7 commit 79e8d9cb133ad76dfdd662172ddfd06fcef0680c
Showing with 6 additions and 18 deletions.
  1. +0 −8 debian/chaosdorf-admin-toolkit.postrm
  2. +0 −9 debian/chaosdorf-admin-toolkit.preinst
  3. +0 −1 debian/install
  4. +3 −0 etckeeper/etckeeper.conf
  5. +3 −0 fabfile.py
@@ -1,8 +0,0 @@
-#!/bin/sh -e
-
-if [ "$1" = remove -o "$1" = abort-install -o "$1" = disappear ]; then
- dpkg-divert --package chaosdorf-admin-toolkit --rename --remove \
- /etc/etckeeper/etckeeper.conf
-fi
-
-#DEBHELPER#
@@ -1,9 +0,0 @@
-#!/bin/sh -e
-
-if [ "$1" = install -o "$1" = upgrade ]; then
- dpkg-divert --package chaosdorf-admin-toolkit --add --rename --divert \
- /etc/etckeeper/etckeeper.conf.etckeeper \
- /etc/etckeeper/etckeeper.conf
-fi
-
-#DEBHELPER#
View
@@ -1,4 +1,3 @@
-etckeeper/etckeeper.conf etc/etckeeper
forcecommand/forcecommand usr/lib/nagios/
forcecommand/nagios etc/forcecommand/
forcecommand/backup etc/forcecommand/
View
@@ -1,3 +1,6 @@
+# Part of chaosdorf-admin-toolkit
+# Only edit in the git repo
+
VCS="git"
GIT_COMMIT_OPTIONS="-v"
View
@@ -14,3 +14,6 @@ def deploy(version):
run("dpkg --install /tmp/chaosdorf-admin-toolkit_%s_all.deb" % version)
run('etckeeper post-install')
run("rm /tmp/chaosdorf-admin-toolkit_%s_all.deb" % version)
+
+def configs():
+ put('etckeeper/etckeeper.conf', '/etc/etckeeper/')

0 comments on commit 79e8d9c

Please sign in to comment.