Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 5778bcf14cb803927c0d16610805cdd3 > scriptlet

nfs-utils-1.2.3-2.3.mga1.i586.rpm

PREUN

/bin/sh
/usr/share/rpm-helper/del-service nfs-utils $1 nfs-server

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service nfs-utils $1 nfs-server 
if [ $1 = 2 ]; then
    # handle upgrade from previous init script scheme
    if [ -f /etc/rc.d/init.d/nfs ]; then
        # ap activation status of old script
        if [ `LC_ALL=C chkconfig --list nfs | cut -f 5` == '3:on' ]; then
            chkconfig --add nfs-server
        fi
        # don't leave dangling symlinks
        chkconfig --del nfs
    fi
    [ -f /etc/rc.d/init.d/rpcsvcgssd ] && chkconfig --del rpcsvcgssd
    # always finish with a true status, otherwise rpm barks
    /bin/true
fi

/usr/share/rpm-helper/create-file nfs-utils $1 /var/lib/nfs/xtab root root 644 
/usr/share/rpm-helper/create-file nfs-utils $1 /var/lib/nfs/etab root root 644 
/usr/share/rpm-helper/create-file nfs-utils $1 /var/lib/nfs/rmtab root root 644