Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > b2d8ad65ade6f04c032217bb0abc4aff > scriptlet

flow-tools-0.68.5.1-12.fc20.i686.rpm

PREIN

/bin/sh
getent group flow-tools >/dev/null || groupadd -r flow-tools
getent passwd flow-tools >/dev/null || \
    useradd -r -g flow-tools -d /var/flow-tools -s /sbin/nologin \
    -c '"Network flow monitoring"' flow-tools
exit 0

PREUN

/bin/sh

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

POSTIN

/bin/sh
/sbin/ldconfig

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

POSTUN

/bin/sh

/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :