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