diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2007-11-05 16:00:32 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2007-11-05 16:00:32 -0500 |
commit | 34320131ce680fe03febc9f4d6b438f05e548cbc (patch) | |
tree | 41c91d7ad68331e1fa2525c43d43e6c04899b09b /etc-init.d | |
parent | 3e6cf464cff47d22f4ac4b4313fda68f32ae1ea8 (diff) |
rename etc-* to etckeeper-*
Diffstat (limited to 'etc-init.d')
-rwxr-xr-x | etc-init.d/10restore-metadata | 5 | ||||
-rwxr-xr-x | etc-init.d/20git-init | 5 | ||||
-rwxr-xr-x | etc-init.d/30git-perm | 3 | ||||
-rwxr-xr-x | etc-init.d/40git-ignore | 15 | ||||
-rwxr-xr-x | etc-init.d/40git-pre-commit-hook | 16 | ||||
-rw-r--r-- | etc-init.d/README | 12 |
6 files changed, 0 insertions, 56 deletions
diff --git a/etc-init.d/10restore-metadata b/etc-init.d/10restore-metadata deleted file mode 100755 index 4ce97ed..0000000 --- a/etc-init.d/10restore-metadata +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -set -e -if [ -e .metadata ]; then - metastore --apply --mtime -fi diff --git a/etc-init.d/20git-init b/etc-init.d/20git-init deleted file mode 100755 index 7bf1c89..0000000 --- a/etc-init.d/20git-init +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -set -e -if [ ! -e .git ]; then - git-init -fi diff --git a/etc-init.d/30git-perm b/etc-init.d/30git-perm deleted file mode 100755 index 564e489..0000000 --- a/etc-init.d/30git-perm +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -set -e -chmod 700 .git diff --git a/etc-init.d/40git-ignore b/etc-init.d/40git-ignore deleted file mode 100755 index 846c32d..0000000 --- a/etc-init.d/40git-ignore +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -set -e -if [ ! -e .gitignore ]; then - cat <<EOF >.gitignore -*~ - -# new and old versions of conffiles, stored by dpkg -*.dpkg-new -*.dpkg-old - -# mount(8) records system state here, no need to keep these in git -blkid.tab(|.old) -mtab -EOF -fi diff --git a/etc-init.d/40git-pre-commit-hook b/etc-init.d/40git-pre-commit-hook deleted file mode 100755 index e7b58e0..0000000 --- a/etc-init.d/40git-pre-commit-hook +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -set -e -if [ -x .git/hooks/pre-commit ]; then - if ! grep -q etc-pre-commit .git/hooks/pre-commit; then - echo "warning: .git/hooks/pre-commit needs to be manually modifed to run etc-pre-commit" >&2 - fi -else - echo <<EOF >>.git/hooks/pre-commit -#!/bin/sh -# pre-commit hook for etckeeper. Calls etc-pre-commit to store metadata -# and do sanity checks. -set -e -etc-pre-commit -EOF - chmod +x .git/hooks/pre-commit -fi diff --git a/etc-init.d/README b/etc-init.d/README deleted file mode 100644 index 8fe4cd1..0000000 --- a/etc-init.d/README +++ /dev/null @@ -1,12 +0,0 @@ -Executable files in this directory are run to initialise the working directory -for use by etckeeper. If the working directory is not already in version -control, that includes setting up the version control, but not actually -committing anything. If the working directory is in version control, -it includes applying stored metadata to the checked out files in the -working directory. - -Please be careful to *never* overwrite existing files/directories -in the working directory. If a file you need to write already exists, check -if its contents are sane, and if not, emit a warning on stderr. - -If initialisation fails, exit nonzero and no later files will be run. |