correctly escape $ in sed regexp

Ralf Becker 2023-04-21 09:49:06 +02:00
parent 21a842d146
commit e2a96104aa

@ -69,7 +69,7 @@ services:
hostname: <fully-qualified-hostname-as-used-in-certificate>
# Delivery to Dovecot will NOT work, if above name starts with mail e.g. "mail.example.org"!
# You need to uncomment the following entrypoint line, to fix this:
#entrypoint: ["sh", "-c", "sed 's/ mail$//g' /etc/hosts > /tmp/hosts; cat /tmp/hosts > /etc/hosts; exec /usr/sbin/postfix -c /etc/postfix start-fg"]
#entrypoint: ["sh", "-c", "sed 's/ mail$$//g' /etc/hosts > /tmp/hosts; cat /tmp/hosts > /etc/hosts; exec /usr/sbin/postfix -c /etc/postfix start-fg"]
volumes:
- /etc/letsencrypt:/etc/letsencrypt
- /etc/letsencrypt/live/egw.example.org/privkey.pem:/etc/postfix/certificate.key