PREUN
/bin/sh
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
systemctl --no-reload disable --now etckeeper.service > /dev/null 2>&1 || :
fi
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
systemctl --no-reload disable --now etckeeper.timer > /dev/null 2>&1 || :
fi
POSTIN
/bin/sh
if [ $1 -gt 1 ] ; then
/usr/bin/etckeeper update-ignore
fi
if [ $1 -eq 1 ] ; then
# Initial installation
systemctl --no-reload preset etckeeper.service >/dev/null 2>&1 || :
fi
if [ $1 -eq 1 ] ; then
# Initial installation
systemctl --no-reload preset etckeeper.timer >/dev/null 2>&1 || :
fi