Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > 13fdf285964c42ee1d80c23e1c227a29 > scriptlet

cherokee-1.2.103-6.fc20.x86_64.rpm

PREIN

/bin/sh
getent group cherokee >/dev/null || groupadd -r cherokee
getent passwd cherokee >/dev/null || \
useradd -r -g cherokee -d /var/lib/cherokee -s /sbin/nologin \
   -c "cherokee web server" cherokee
exit 0

PREUN

/bin/sh
   
if [ $1 -eq 0 ] ; then 
        # Package removal, not upgrade 
        systemctl --no-reload disable cherokee.service > /dev/null 2>&1 || : 
        systemctl stop cherokee.service > /dev/null 2>&1 || : 
fi

POSTIN

/bin/sh
   
if [ $1 -eq 1 ] ; then 
        # Initial installation 
        systemctl preset cherokee.service >/dev/null 2>&1 || : 
fi

POSTUN

/bin/sh
   
systemctl daemon-reload >/dev/null 2>&1 || : 
if [ $1 -ge 1 ] ; then 
        # Package upgrade, not uninstall 
        systemctl try-restart cherokee.service >/dev/null 2>&1 || : 
fi