Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > 8e29c837d795074f81b7e5a233af8de5 > scriptlet

nut-client-2.6.5-9.fc18.x86_64.rpm

PREIN

/bin/sh
/usr/sbin/useradd -c "Network UPS Tools" -u 57 \
        -s /bin/false -r -d /var/lib/ups nut 2> /dev/null || :
/usr/sbin/usermod -G dialout nut

PREUN

/bin/sh

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

POSTIN

/bin/sh
/sbin/ldconfig

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

POSTUN

/bin/sh
/sbin/ldconfig