Sophie

Sophie

distrib > Scientific%20Linux > 5x > i386 > by-pkgid > b6c8488533c7e8dca93bf3e04db28058 > scriptlet

portmap-4.0-65.2.2.1.i386.rpm

PREUN

/bin/sh
if [ $1 = 0 ]; then
  service portmap stop > /dev/null 2>&1
  /sbin/chkconfig --del portmap
fi

POSTIN

/bin/sh
/sbin/chkconfig --add portmap
/usr/sbin/groupadd -g 32 rpc > /dev/null 2>&1
/usr/sbin/useradd -c "Portmapper RPC user" -d / -g 32 -M -s /sbin/nologin -u 32 rpc > /dev/null 2>&1
exit 0

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
  service portmap condrestart > /dev/null 2>&1
fi
exit 0

Triggers

portmap <= 4.0-22

/bin/sh
/sbin/chkconfig --add portmap