Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > efddb54637bc35de375fdafe6eabcdf2 > scriptlet

resiprocate-repro-1.8.7-1.fc18.i686.rpm

PREIN

/bin/sh
getent group repro >/dev/null || groupadd -r repro
getent passwd repro >/dev/null || \
    useradd -r -g repro -d /var/lib/repro -s /sbin/nologin \
    -c "repro SIP proxy" repro

PREUN

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

POSTIN

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

POSTUN

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