Skip to content

Commit

Permalink
Hotfix on sed commnad
Browse files Browse the repository at this point in the history
Change simple quote to double quote to be able to interpolate bash variables
  • Loading branch information
FabianRuizF authored Jan 7, 2022
1 parent e378be1 commit 9c417aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions change_domain_and_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ while [[ $# -gt 0 ]]

new_domain=$DOMAIN_NAME
ip=$(curl https://ipinfo.io/ip)
sed -i 's/example.org/$new_domain/g' init-letsencrypt.sh
sed -i 's/example.org/$new_domain/g' data/nginx/app.conf
sed -i "s/example.org/$new_domain/g" init-letsencrypt.sh
sed -i "s/example.org/$new_domain/g" data/nginx/app.conf


echo $ip
Expand Down

0 comments on commit 9c417aa

Please sign in to comment.