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. 7
      precise/base-0k/hooks/install

7
precise/base-0k/hooks/install

@ -20,13 +20,18 @@ apt-get -y install bash-completion wget bzip2 git-core less language-pack-en pyt
## etckeeper ## etckeeper
## ##
if [ -z "$DOCKER" ]; then
apt-get install etckeeper apt-get install etckeeper
sed -i 's/#VCS="git"/VCS="git"/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 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 ## Git utilities

Loading…
Cancel
Save