Skip to content

Commit

Permalink
Merge pull request #693 from ivanaugustobd/master
Browse files Browse the repository at this point in the history
  • Loading branch information
markshust authored May 9, 2022
2 parents 18bc135 + d5d33ba commit 2245c1b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compose/bin/setup-domain
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ set -o errexit

DOMAIN=$1

echo "Your system password has been requested to add an entry to /etc/hosts..."
echo "127.0.0.1 ::1 $DOMAIN" | sudo tee -a /etc/hosts
if ! grep -q "$DOMAIN" /etc/hosts; then
echo "Your system password is needed to add an entry to /etc/hosts..."
echo "127.0.0.1 ::1 $DOMAIN" | sudo tee -a /etc/hosts
fi

echo "Set https://${DOMAIN}/ to web/secure/base_url and web/secure/base_url"
bin/clinotty bin/magento config:set web/secure/base_url https://"$DOMAIN"/
Expand Down

0 comments on commit 2245c1b

Please sign in to comment.