Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > b2ba75b72976d0b1741d2ba822c9b5f1 > scriptlet

avahi-0.6.31-16.mga5.x86_64.rpm

PREIN

/bin/sh
/usr/share/rpm-helper/add-user avahi $1 avahi /var/run/avahi-daemon /bin/false 

/usr/share/rpm-helper/add-user avahi $1 avahi-autoipd /var/lib/avahi-autoipd /bin/false 

# Correct home directories if users already exists (mga#10004)
if [ "`grep -E '^avahi:' < /etc/passwd | cut -f6 -d:`" = /var/avahi ]; then
	/usr/sbin/usermod -d /var/run/avahi-daemon avahi
fi
if [ "`grep -E '^avahi-autoipd:' < /etc/passwd | cut -f6 -d:`" = /var/avahi ]; then
        /usr/sbin/usermod -d /var/lib/avahi-autoipd avahi-autoipd
fi

PREUN

/bin/sh
/usr/share/rpm-helper/del-service avahi $1 avahi-daemon

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service avahi $1 avahi-daemon

POSTUN

/bin/sh
# Note postun_userdel is a dummy script. It does not do anything!
/usr/share/rpm-helper/del-user avahi $1 avahi 

/usr/share/rpm-helper/del-user avahi $1 avahi-autoipd