[Lunar-commits] CVS: moonbase/mail/mailman CONFIGURE,NONE,1.1
Jon South
striker at lunar-linux.org
Tue May 25 16:39:36 GMT 2004
Update of /var/cvs/lunar/moonbase/mail/mailman
In directory dbguin.lunar-linux.org:/tmp/cvs-serv21136
Added Files:
CONFIGURE
Log Message:
added optional cgi-gid configure setting
--- NEW FILE: CONFIGURE ---
# Read the config so we can show the user what is currently set
. $MODULE_CONFIG
GET_GID=0
if ! grep -q "MAILMAN_GID" $MODULE_CONFIG; then
if query "Do you want a custom group for mailman (must match apache)?" n; then
GET_GID=1
else
MAILMAN_GID="nogroup"
echo "MAILMAN_GID=$MAILMAN_GID" >> $MODULE_CONFIG
fi
else
if query "Change custom group for mailman ($MAILMAN_GID)?" n; then
GET_GID=1
fi
fi
if [ "$GET_GID" == "1" ]; then
IS_THIS_CORRECT=0
while [ "$IS_THIS_CORRECT" == "0" ]; do
echo -en "${MODULE_COLOR}${MODULE}${DEFAULT_COLOR}: ${QUERY_COLOR}Enter group name:${DEFAULT_COLOR} "
read -e MAILMAN_GID
if [ "$MAILMAN_GID" == "" ]; then
message "${MODULE_COLOR}${MODULE}:${PROBLEM_COLOR} ! Error: mailman group name cannot be blank${DEFAULT_COLOR}"
else
if ! grep "^$MAILMAN_GID:.*$" /etc/group; then
message "${MODULE_COLOR}${MODULE}:${PROBLEM_COLOR} ! WARNING: group '$MAILMAN_GID' does not exist.${DEFAULT_COLOR}"
fi
if query "Is '$MAILMAN_GID' correct?" y; then
IS_THIS_CORRECT=1
fi
fi
done
echo "MAILMAN_GID=$MAILMAN_GID" >> $MODULE_CONFIG
fi
More information about the Lunar-commits
mailing list