Browse Source

chg: [base-0k] remove ``etckeeper`` when in docker mode.

It makes no sense to install ``etckeeper`` in docker mode.
postgres
Valentin Lab 10 years ago
parent
commit
9b0927af37
  1. 13
      precise/base-0k/hooks/install

13
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
##

Loading…
Cancel
Save