Sed replacemnt fix

This commit is contained in:
Val 2015-07-25 03:29:21 +01:00
parent 1a38cac29e
commit 9931234b2a

View File

@ -30,7 +30,7 @@ function add_amavis () {
fi
# master.cf
if ! grep -q "$AMAVIS_CONFIG_HEADER" "$POSTFIX_MASTER_CF"; then
sed "/^pickup.*/a \ -o content_filter= \n -o receive_override_options=no_header_body_checks/" $POSTFIX_MASTER_CF -i
sed "/^pickup.*/a \ -o content_filter= \n -o receive_override_options=no_header_body_checks" $POSTFIX_MASTER_CF -i
echo "$AMAVIS_CONFIG_HEADER" >> $POSTFIX_MASTER_CF
echo "smtp-amavis unix - - - - 2 smtp" >> $POSTFIX_MASTER_CF
echo " -o smtp_data_done_timeout=1200" >> $POSTFIX_MASTER_CF