summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-11-05 14:06:26 -0500
committerJoey Hess <joey@kodama.kitenet.net>2007-11-05 14:06:26 -0500
commit7f14287648289acadc203a37afddb777abfaa237 (patch)
tree42889439a56f6fc3f8db68a35812c94b7a0d8a1f
stub programs
-rw-r--r--etc-clone4
-rw-r--r--etc-init3
-rw-r--r--etc-post-apt4
-rw-r--r--etc-pre-apt4
4 files changed, 15 insertions, 0 deletions
diff --git a/etc-clone b/etc-clone
new file mode 100644
index 0000000..d257c66
--- /dev/null
+++ b/etc-clone
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Clone a git repository that holds an /etc. Doesn't check it out to /etc
+# by default though. Calls etc-init to set up hooks, and ensures that files
+# like shadow are never world readable during the cloning process.
diff --git a/etc-init b/etc-init
new file mode 100644
index 0000000..50fb408
--- /dev/null
+++ b/etc-init
@@ -0,0 +1,3 @@
+#!/bin/sh
+# Initialise /etc as a git repository (if it isn't already), set up hooks, etc.
+# Do not commit anything though.
diff --git a/etc-post-apt b/etc-post-apt
new file mode 100644
index 0000000..a5aa9e5
--- /dev/null
+++ b/etc-post-apt
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Intended to be an apt DPkg::Post-Invoke hook. Runs
+# /etc/etckeeper/post-apt.d/* hooks, which can be used to
+# add new files, and commit the changes.
diff --git a/etc-pre-apt b/etc-pre-apt
new file mode 100644
index 0000000..01da221
--- /dev/null
+++ b/etc-pre-apt
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Intended to be an apt DPkg::Pre-Install-Pkgs hook. Runs
+# /etc/etckeeper/pre-apt.d/* hooks, which can be used to check for
+# uncommitted files in /etc, and so on, before apt runs.