# check, whether a user majordomo exists
MUID=`/usr/bin/id majordomo 2>/dev/null | sed -e 's,).*,,' -e 's,^.*(,,'`
MGID=`/usr/bin/id majordomo 2>/dev/null | sed -e 's,^.*(,,' -e 's,).*,,'`
if  [ -z "$MUID" -o -z "$MGID" ]; then
	echo "
  User 'majordomo' does not exist. Please create such a user before 
  adding this package to your system! E.g.

	useradd -c 'Mailing List Manager' -d /opt/majordomo \\
		-u 97 -g daemon -s /bin/tcsh majordomo
"
	exit 3
fi

echo "MGID=$MGID" >>$1

exit 0
