Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 9f34e71c413863ec5e889745a9f640f2 > scriptlet

opensips-1.9.1-1.fc18.i686.rpm

PREIN

/bin/sh
getent group opensips >/dev/null || groupadd -r opensips
getent passwd opensips >/dev/null || \
useradd -r -g opensips -d /var/run/opensips -s /sbin/nologin \
-c "OpenSIPS SIP Server" opensips 2>/dev/null || :

PREUN

/bin/sh

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

POSTIN

/bin/sh

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

Triggers

opensips < 1.7.2-1

/bin/sh
# Save the current service runlevel info
# User must manually run systemd-sysv-convert --apply opensips
# to migrate them to systemd targets
/usr/bin/systemd-sysv-convert --save opensips >/dev/null 2>&1 ||:

# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del opensips >/dev/null 2>&1 || :
/bin/systemctl try-restart opensips.service >/dev/null 2>&1 || :

opensips < 1.7.2-4

/bin/sh
chown -R opensips:opensips /etc/opensips