1 |
# $Id: smeserver-mailman.spec,v 1.4 2021/06/03 07:49:13 jpp Exp $ |
# $Id: smeserver-mailman.spec,v 1.5 2021/08/23 00:10:40 terryfage Exp $ |
2 |
# Authority: gordonr |
# Authority: gordonr |
3 |
# Name: Gordon Rowell |
# Name: Gordon Rowell |
4 |
|
|
9 |
%define name smeserver-mailman |
%define name smeserver-mailman |
10 |
Name: %{name} |
Name: %{name} |
11 |
%define version 1.5.0 |
%define version 1.5.0 |
12 |
%define release 10 |
%define release 11 |
13 |
Version: %{version} |
Version: %{version} |
14 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
15 |
License: GPL |
License: GPL |
33 |
Add Mailman integration to the SME server. |
Add Mailman integration to the SME server. |
34 |
|
|
35 |
%changelog |
%changelog |
36 |
|
* Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-11.sme |
37 |
|
- fix www line should be after apache line in /etc/group [SME: 8056] |
38 |
|
|
39 |
* Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme |
* Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme |
40 |
- apply locale 2021-08-22 patch |
- apply locale 2021-08-22 patch |
41 |
|
|
376 |
"Mailman user" /usr/lib/mailman /bin/false |
"Mailman user" /usr/lib/mailman /bin/false |
377 |
|
|
378 |
#mailman wants that the apache group appears before the www group in /etc/group [SME: 8056] |
#mailman wants that the apache group appears before the www group in /etc/group [SME: 8056] |
379 |
TEST=$(grep -P '^www|apache' /etc/group) |
TEST=`egrep "^apache:" /etc/group -n| cut -f1 -d:` |
380 |
TEST2='www:x:102:admin |
TEST2=`egrep "^www:" /etc/group -n| cut -f1 -d:` |
381 |
apache:x:102:' |
if [[ $TEST > $TEST2 ]]; then |
|
|
|
|
if [[ $TEST == $TEST2 ]]; then |
|
382 |
WWW=$(sed -n '/^www/p' /etc/group) |
WWW=$(sed -n '/^www/p' /etc/group) |
383 |
sed -i '/^www/d' /etc/group |
sed -i '/^www/d' /etc/group |
384 |
echo $WWW >> /etc/group |
echo $WWW >> /etc/group |