#!/bin/bash

set +eux

[ "$DOCKER" ] && exit 0

##
## etckeeper
##

apt-get install -y etckeeper </dev/null

sed -i 's/^#VCS="git"/VCS="git"/g;s/^VCS="bzr"/#VCS="bzr"/g' \
    /etc/etckeeper/etckeeper.conf

if ! [ -f /etc/.git ]; then
    etckeeper init
fi