summaryrefslogtreecommitdiff
path: root/init.d/20restore-etckeeper
blob: 984d521c3ab8ab822d0b34232638474f1e411e94 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -e

# Yes, this runs code from the repository. As documented, etckeeper-init
# should only be run on repositories you trust.
if [ -e .etckeeper ]; then
	. ./.etckeeper
else
	touch .etckeeper
	chmod 600 .etckeeper
fi