Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > 91a9b6a1cf50c790dc938010556a302b > scriptlet

nut-2.2.2-5mdv2009.0.i586.rpm

PREIN

/bin/sh
# Create an UPS user.
/usr/share/rpm-helper/add-user nut $1 ups /var/state/ups /bin/false 
/usr/share/rpm-helper/add-group nut $1 ups ups 
/usr/share/rpm-helper/add-group nut $1 tty ups 
/usr/share/rpm-helper/add-group nut $1 usb ups 
/usr/share/rpm-helper/add-group nut $1 uucp ups

PREUN

/bin/sh
# only do this if it is not an upgrade
/usr/share/rpm-helper/del-service nut $1 upsmon

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service nut $1 upsmon

POSTUN

/bin/sh
# Only do this if it is not an upgrade
if [ ! -f /usr/sbin/upsd ]; then
   /usr/share/rpm-helper/del-user nut $1 ups 
fi