From 9b0927af370b3e9d7ef9faf0c15a245b6d448e8d Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 6 Oct 2014 12:48:04 +0200 Subject: [PATCH] chg: [base-0k] remove ``etckeeper`` when in docker mode. It makes no sense to install ``etckeeper`` in docker mode. --- precise/base-0k/hooks/install | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/precise/base-0k/hooks/install b/precise/base-0k/hooks/install index 5b5b95f..1fe412f 100755 --- a/precise/base-0k/hooks/install +++ b/precise/base-0k/hooks/install @@ -20,14 +20,19 @@ apt-get -y install bash-completion wget bzip2 git-core less language-pack-en pyt ## etckeeper ## -apt-get install etckeeper +if [ -z "$DOCKER" ]; then + apt-get install etckeeper -sed -i 's/#VCS="git"/VCS="git"/g' /etc/etckeeper/etckeeper.conf -sed -i 's/VCS="bzr"/#VCS="bzr"/g' /etc/etckeeper/etckeeper.conf + sed -i 's/#VCS="git"/VCS="git"/g' /etc/etckeeper/etckeeper.conf + sed -i 's/VCS="bzr"/#VCS="bzr"/g' /etc/etckeeper/etckeeper.conf -etckeeper init + git config --system user.email "default@$(hostname)" + git config --system user.name "default" + etckeeper init +fi + ## ## Git utilities ##