Sophie

Sophie

distrib > Mageia > 8 > x86_64 > by-pkgid > f15be0acd698e182291e0e90f4f3c746 > scriptlet

cups-pdf-3.0.1-2.mga8.x86_64.rpm

POSTIN

/bin/sh
# First install : create the printer if cupsd is running
if [ "$1" -eq "1" -a -f "/var/run/cupsd.pid" ]
then
    if [ -d /proc/$(cat /var/run/cupsd.pid) ]
    then
        /usr/sbin/lpadmin -p Cups-PDF -v cups-pdf:/ -m CUPS-PDF.ppd -E || :
    fi
fi

POSTUN

/bin/sh
if [ "$1" -eq "0" ]; then
    # Delete the printer
    /usr/sbin/lpadmin -x Cups-PDF || :
fi