forked from pool/postfix
Accepting request 711551 from home:mgoppold:mail
ensure that postfix is member of all groups as before (i.e. amavis run as milter with user vscan and postfix belong to the vscan group) OBS-URL: https://build.opensuse.org/request/show/711551 OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=337
This commit is contained in:
committed by
Git OBS Bridge
parent
8756bb6078
commit
b7c235ecd7
@@ -241,7 +241,7 @@ make %{?_smp_mflags}
|
||||
groupadd -g %{pf_gid} -o -r %{name} 2> /dev/null || :
|
||||
groupadd -g %{maildrop_gid} -o -r maildrop 2> /dev/null || :
|
||||
useradd -r -o -g %{name} -u %{pf_uid} -s /bin/false -c "Postfix Daemon" -d /%{pf_queue_directory} %{name} 2> /dev/null || :
|
||||
usermod -G %{maildrop_gid},%{mail_group} %{name} 2> /dev/null || :
|
||||
usermod -a -G %{maildrop_gid},%{mail_group} %{name} 2> /dev/null || :
|
||||
mkdir -p %{buildroot}/%{_libdir}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
|
||||
cp conf/* %{buildroot}%{_sysconfdir}/%{name}
|
||||
@@ -390,7 +390,7 @@ fi
|
||||
getent group %{name} >/dev/null || groupadd -g %{pf_gid} -o -r %{name}
|
||||
getent group maildrop >/dev/null || groupadd -g %{maildrop_gid} -o -r maildrop
|
||||
getent passwd %{name} >/dev/null || useradd -r -o -g %{name} -u %{pf_uid} -s /bin/false -c "Postfix Daemon" -d /%{pf_queue_directory} %{name}
|
||||
usermod -G %{maildrop_gid},%{mail_group} %{name}
|
||||
usermod -a -G %{maildrop_gid},%{mail_group} %{name}
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
%pre mysql
|
||||
|
Reference in New Issue
Block a user