Commit 661e13d3 authored by Marco Mariani's avatar Marco Mariani

set daemon_user and daemon_group to current user in amavisd.conf.in

parent 2345c330
...@@ -210,7 +210,11 @@ command = ...@@ -210,7 +210,11 @@ command =
find . -name LocalConfig.java -exec sed -i 's#= FS + "opt" + FS + "zimbra"#= "${:ZIMBRA_HOME}"#g' {} \; find . -name LocalConfig.java -exec sed -i 's#= FS + "opt" + FS + "zimbra"#= "${:ZIMBRA_HOME}"#g' {} \;
SUB1='s#/opt/zimbra#${:ZIMBRA_HOME}#g' SUB1='s#/opt/zimbra#${:ZIMBRA_HOME}#g'
SUB2='1{s|^#!/usr/bin/perl|#!${:PERL_BINARY}|}' SUB2='1{s|^#!/usr/bin/perl|#!${:PERL_BINARY}|}'
GROUP_NAME=`id -gn`
USER_NAME=`id -un`
find . -name '.git' -prune -o -type f -exec sed -i "$SUB1;$SUB2" {} \; find . -name '.git' -prune -o -type f -exec sed -i "$SUB1;$SUB2" {} \;
sed -i "s|\$daemon_user *= *'zimbra';|\$daemon_user = '$USER_NAME';|" ZimbraServer/conf/amavisd.conf.in
sed -i "s|\$daemon_group *= *'zimbra';|\$daemon_group = '$GROUP_NAME';|" ZimbraServer/conf/amavisd.conf.in
[zimbra-build] [zimbra-build]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment