Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > a499847abd644d48f861e516ff8aa695 > scriptlet

popa3d-0.6.4.1-6.amd64.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 popa3d." 1>&2 
		exit 1 
	fi 
else 
	echo "Adding user pop3 UID=60." 
	/usr/sbin/useradd \
		 \
		-u 60 \
		-r \
		-d /usr/share/empty \
		-s /bin/false \
		-c "pop3 user"\
		-g nobody \
		 \
		 \
		pop3 1>&2 || exit $? 
	[ ! -x /usr/sbin/nscd ] || /usr/sbin/nscd -i passwd || : 
fi;

POSTIN

/bin/sh
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/rc-inetd ] && . /etc/sysconfig/rc-inetd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/rc-inetd ]; then
/sbin/service rc-inetd reload 1>&2 || :;
fi
fi };

POSTUN

/bin/sh
if [ "$1" = "0" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/rc-inetd ] && . /etc/sysconfig/rc-inetd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/rc-inetd ]; then
/sbin/service rc-inetd reload 1>&2 || :;
fi
fi };	/usr/lib/rpm/user_group.sh user del pop3
fi

Triggers

popa3d < 0.6.3-2

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