Sophie

Sophie

distrib > Mandriva > cs4.0 > x86_64 > by-pkgid > afe101184896cf0fe17eab219ce8ad07 > scriptlet

cups-1.2.4-0.1.20060mlcs4.x86_64.rpm

PREIN

/bin/sh
# Fix /usr/lib/cups directory, so that updates can be done
if [ -d /usr/lib64/cups ] && ! [ -h /usr/lib64/cups ]; then
    if [ -h /usr/lib/cups ]; then
        rm -f /usr/lib/cups
	mv /usr/lib64/cups /usr/lib/cups
    else
	mv /usr/lib64/cups /usr/lib64/cups.rpmsave
	echo 'Moved /usr/lib64/cups to /usr/lib64/cups.rpmsave' 1>&2
    fi
fi
/usr/share/rpm-helper/add-group cups $1 lpadmin

PREUN

/bin/sh
# Let CUPS daemon not be automatically started at boot time any more
/usr/share/rpm-helper/del-service cups $1 cups

POSTIN

/bin/sh
# Make sure group ownerships are correct
chgrp -R sys /etc/cups /var/*/cups
# Let CUPS daemon be automatically started at boot time
/usr/share/rpm-helper/add-service cups $1 cups

POSTUN

/bin/sh
/usr/share/rpm-helper/del-group cups $1 lpadmin