You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
731 B
30 lines
731 B
#!/bin/sh
|
|
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
|
|
|
if [ "$CONTAINERTEST" -eq "1" ]; then
|
|
t_Log "Running in container -> SKIP"
|
|
exit 0
|
|
fi
|
|
|
|
if (t_GetPkgRel basesystem | grep -q el9)
|
|
then
|
|
t_Log "This is a C9 system. mailman not present. Skipping."
|
|
t_CheckExitStatus 0
|
|
exit $PASS
|
|
fi
|
|
|
|
t_Log "Running $0 - mailman test."
|
|
|
|
# Add mailman list
|
|
/usr/lib/mailman/bin/newlist -q mailman root@localhost.localdomain password > /dev/null 2>&1
|
|
|
|
# Restart httpd (started in other tests) and start mailman
|
|
t_ServiceControl httpd restart
|
|
t_ServiceControl mailman start
|
|
|
|
curl -s http://localhost/mailman/listinfo | grep -q 'localhost Mailing Lists'
|
|
t_CheckExitStatus $?
|
|
|
|
t_ServiceControl httpd stop
|
|
t_ServiceControl mailman stop
|