From ebf3b7c034a1e1657f1ec6d540a22b41b7b49a31 Mon Sep 17 00:00:00 2001 From: Israel Yago Pereira Date: Thu, 2 Dec 2021 16:01:24 -0300 Subject: [PATCH] Escape dot char on sed regex to not match any char --- scripts/postinstall.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh index 3c3370a..7fc3afa 100755 --- a/scripts/postinstall.sh +++ b/scripts/postinstall.sh @@ -95,9 +95,9 @@ docker-compose exec -T postfixadmin /postfixadmin/scripts/postfixadmin-cli mailb echo "Setting the right domain in welcome templates" -docker-compose exec -T welcome find /var/www/html/invite_template/ -type f -exec sed -i "s/ecloud.global/$DOMAIN/g" {} \; -docker-compose exec -T welcome find /var/www/html/invite_template/ -type f -exec sed -i "s/e.email/$DOMAIN/g" {} \; -docker-compose exec -T welcome find /var/www/html/ -type f -name '*.html' -exec sed -i "s/e.email/$DOMAIN/g" {} \; +docker-compose exec -T welcome find /var/www/html/invite_template/ -type f -exec sed -i "s/ecloud\.global/$DOMAIN/g" {} \; +docker-compose exec -T welcome find /var/www/html/invite_template/ -type f -exec sed -i "s/e\.email/$DOMAIN/g" {} \; +docker-compose exec -T welcome find /var/www/html/ -type f -name '*.html' -exec sed -i "s/e\.email/$DOMAIN/g" {} \; # display DKIM DNS setup info/instructions to the user echo -e "\n\n\n" -- GitLab