summaryrefslogtreecommitdiff
path: root/50pristine-etc-keeper.post-install
blob: 096cce4792ae2118ccac90e7944a15c7fbfc1191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
# Copyright 2016 Luke Shumaker
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the COPYING file for more details.

exec 8>/var/lib/pristine-etc/lock
flock -x -n 8
echo 'etckeeper post-install' >> /var/lib/pristine-etc/spool
exec 8>&-

systemctl reset-failed pristine-etc-keeper.service &>/dev/null || true
systemctl start        pristine-etc-keeper.service