Skip to content

Commit

Permalink
fix: avoid appending parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
seieric committed Oct 7, 2024
1 parent d3f0e96 commit ecb71da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init-postfix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ adduser postfix sasl
if [[ -e /etc/postfix/sender_canonical ]]; then
/usr/sbin/postmap /etc/postfix/sender_canonical && chmod 600 /etc/postfix/sender_canonical.db
if grep -q "^sender_canonical_maps" /etc/postfix/main.cf; then
sed -i 's/^sender_canonical_maps/sender_canonical_maps = hash:\/etc\/postfix\/sender_canonical/' /etc/postfix/main.cf
sed -i 's/^sender_canonical_maps.*/sender_canonical_maps = hash:\/etc\/postfix\/sender_canonical/' /etc/postfix/main.cf
else
echo "sender_canonical_maps = hash:/etc/postfix/sender_canonical" >> /etc/postfix/main.cf
fi
Expand Down

0 comments on commit ecb71da

Please sign in to comment.