Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > 8116062e3af4a8a5ba2be9b4842c4308 > scriptlet

resiprocate-repro-1.8.7-1.fc18.x86_64.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