PREUN
/bin/sh
if [ "$1" -eq "0" ] ; then
/bin/systemctl --no-reload disable abrt-ccpp.service >/dev/null 2>&1 || :
/bin/systemctl stop abrt-ccpp.service >/dev/null 2>&1 || :
fi
POSTIN
/bin/sh
# this is required for transition from 1.1.x to 2.x
# because /cache/abrt-di/* was created under root with root:root
# so 2.x fails when it tries to extract debuginfo there..
chown -R abrt:abrt /var/cache/abrt-di
if [ $1 -eq 1 ]; then
# Enable (but don't start) the units by default
/bin/systemctl enable abrt-ccpp.service >/dev/null 2>&1 || :
fi
POSTUN
/bin/sh
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
POSTTRANS
/bin/sh
service abrt-ccpp condrestart >/dev/null 2>&1 || :