Sophie

Sophie

distrib > PLD > ac > ppc > media > dist > by-pkgid > ebf2ec03c613b167142df746cb56d54d > scriptlet

solid-pop3d-0.16d-12.ppc.rpm

PREIN

/bin/sh

 
 
 
if [ -n "`/bin/id -u pop3 2>/dev/null`" ]; then 
	if [ "`/bin/id -u pop3`" != "60" ]; then 
		echo "Error: user pop3 doesn't have uid=60. Correct this before installing solid-pop3d." 1>&2 
		exit 1 
	fi 
else 
	echo "Adding user pop3 UID=60." 
	/usr/sbin/useradd \
		-u 60 \
		-r \
		-d /var/mail/bulletins \
		-s /bin/false \
		-c "pop3 user"\
		-g nobody \
		 \
		 \
		pop3 1>&2 
fi;

POSTIN

/bin/sh
if [ -f /var/lock/subsys/rc-inetd ]; then
	/etc/rc.d/init.d/rc-inetd reload 1>&2
else
	echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
fi

POSTUN

/bin/sh
if [ -f /var/lock/subsys/rc-inetd ]; then
	/etc/rc.d/init.d/rc-inetd reload 1>&2
fi

if [ "$1" = "0" ]; then
	/usr/lib/rpm/user_group.sh user del pop3
fi

Triggers

solid-pop3d < 0.16d-8

/bin/sh
if [ "$1" != "0" ]; then
	/usr/lib/rpm/user_group.sh user del spop3d
fi