Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release > by-pkgid > cf39c13870f9ddbc3d5e7b9130f14b56 > scriptlet

profile-sync-daemon-6.33-3.mga8.noarch.rpm

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 --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 \--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