PREUN
/bin/sh
if [ $1 -eq 0 ]; then
setsebool -P rsync_full_access 0 >/dev/null 2>&1 || :
fi
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
systemctl --no-reload --user --global disable psd.service > /dev/null 2>&1 || :
fi
POSTIN
/bin/sh
if [ $1 -eq 1 ]; then
setsebool -P rsync_full_access 1 >/dev/null 2>&1 || :
fi
if [ $1 -eq 1 ] ; then
# Initial installation
systemctl --no-reload preset \--user \--global psd.service >/dev/null 2>&1 || :
fi
POSTUN
/bin/sh
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
systemctl try-restart psd.service >/dev/null 2>&1 || :
fi