Allow configuration of user:group through sysconfig
Resolves: rhbz#1344250
This commit is contained in:
parent
78692d1818
commit
7be5d45352
@ -23,6 +23,9 @@ else
|
|||||||
QUEUE=1h
|
QUEUE=1h
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
USER=${USER:=exim}
|
||||||
|
GROUP=${GROUP:=exim}
|
||||||
|
|
||||||
gen_cert() {
|
gen_cert() {
|
||||||
if [ ! -f /etc/pki/tls/certs/exim.pem ] ; then
|
if [ ! -f /etc/pki/tls/certs/exim.pem ] ; then
|
||||||
umask 077
|
umask 077
|
||||||
@ -44,7 +47,7 @@ root@${FQDN}
|
|||||||
EOF
|
EOF
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
success
|
success
|
||||||
chown exim.exim /etc/pki/tls/{private,certs}/exim.pem
|
chown $USER:$GROUP /etc/pki/tls/{private,certs}/exim.pem
|
||||||
chmod 600 /etc/pki/tls/{private,certs}/exim.pem
|
chmod 600 /etc/pki/tls/{private,certs}/exim.pem
|
||||||
else
|
else
|
||||||
failure
|
failure
|
||||||
@ -65,7 +68,7 @@ start() {
|
|||||||
then
|
then
|
||||||
if [ "exim" != "`ls -l /var/log/exim/main.log | awk '{print $4}'`" ]
|
if [ "exim" != "`ls -l /var/log/exim/main.log | awk '{print $4}'`" ]
|
||||||
then
|
then
|
||||||
chown -R exim:exim /var/log/exim /var/spool/exim
|
chown -R $USER:$GROUP /var/log/exim /var/spool/exim
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
Summary: The exim mail transfer agent
|
Summary: The exim mail transfer agent
|
||||||
Name: exim
|
Name: exim
|
||||||
Version: 4.84.2
|
Version: 4.84.2
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Url: http://www.exim.org/
|
Url: http://www.exim.org/
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -519,6 +519,10 @@ test "$1" = 0 || %{_initrddir}/clamd.exim condrestart >/dev/null || :
|
|||||||
%{_sysconfdir}/cron.daily/greylist-tidy.sh
|
%{_sysconfdir}/cron.daily/greylist-tidy.sh
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 9 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 4.84.2-3
|
||||||
|
- Allow configuration of user:group through sysconfig
|
||||||
|
Resolves: rhbz#1344250
|
||||||
|
|
||||||
* Mon Apr 18 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 4.84.2-2
|
* Mon Apr 18 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 4.84.2-2
|
||||||
- Used sane environment defaults in default configuration
|
- Used sane environment defaults in default configuration
|
||||||
Resolves: rhbz#1323775
|
Resolves: rhbz#1323775
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
DAEMON=yes
|
DAEMON=yes
|
||||||
QUEUE=1h
|
QUEUE=1h
|
||||||
|
USER=exim
|
||||||
|
GROUP=exim
|
||||||
|
Loading…
Reference in New Issue
Block a user