Fri, 02 Jan 2009 21:11:40 +0100
Correct permission problems in log and list files.
mailman/mailman.spec | file | annotate | diff | comparison | revisions | |
mailman/rc.mailman | file | annotate | diff | comparison | revisions |
1.1 --- a/mailman/mailman.spec Wed Dec 17 15:03:09 2008 +0100 1.2 +++ b/mailman/mailman.spec Fri Jan 02 21:11:40 2009 +0100 1.3 @@ -32,7 +32,7 @@ 1.4 Group: Mail 1.5 License: GPL 1.6 Version: 2.1.11 1.7 -Release: 20081218 1.8 +Release: 20081220 1.9 1.10 # list of sources 1.11 Source0: http://switch.dl.sourceforge.net/mailman/mailman-%{version}.tgz 1.12 @@ -154,12 +154,16 @@ 1.13 %{l_shtool} install -c -m 755 %{l_value -s -a} \ 1.14 %{SOURCE rc.mailman} ${RPM_BUILD_ROOT}%{l_prefix}/etc/rc.d/ 1.15 1.16 + # avoid root permissions on log file creation 1.17 + touch %{l_prefix}/var/mailman/logs/error 1.18 + 1.19 # determine installation files 1.20 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 1.21 %{l_files_std} \ 1.22 '%dir %attr(2700,%{l_nusr},%{l_mgrp}) %{l_prefix}/libexec/mailman/mail/mailman-sendmail' \ 1.23 '%dir %attr(2775,%{l_nusr},%{l_mgrp}) %{l_prefix}/var/mailman' \ 1.24 '%dir %attr(2775,%{l_nusr},%{l_mgrp}) %{l_prefix}/var/mailman/logs' \ 1.25 + '%dir %attr(644,%{l_nusr},%{l_mgrp}) %{l_prefix}/var/mailman/logs/*' \ 1.26 '%dir %attr(2775,%{l_nusr},%{l_mgrp}) %{l_prefix}/var/mailman/spam' \ 1.27 '%dir %attr(2775,%{l_nusr},%{l_mgrp}) %{l_prefix}/var/mailman/qfiles' \ 1.28 '%dir %attr(2775,%{l_nusr},%{l_mgrp}) %{l_prefix}/var/mailman/locks' \
2.1 --- a/mailman/rc.mailman Wed Dec 17 15:03:09 2008 +0100 2.2 +++ b/mailman/rc.mailman Fri Jan 02 21:11:40 2009 +0100 2.3 @@ -39,18 +39,18 @@ 2.4 @l_prefix@/bin/python ${mailman_ctl} -q restart 2.5 sleep 2 2.6 2.7 -%quarterly -u @l_susr@ 2.8 +%quarterly 2.9 rcService mailman enable yes || exit 0 2.10 @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/gate_news 2.11 2.12 -%daily -u @l_susr@ 2.13 +%daily -u @l_nusr@ 2.14 rcService mailman enable yes || exit 0 2.15 @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/checkdbs 2.16 @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/disabled 2.17 @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/senddigests 2.18 @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/nightly_gzip 2.19 2.20 -%monthly -u @l_susr@ 2.21 +%monthly 2.22 rcService mailman enable yes || exit 0 2.23 @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/mailpasswds 2.24