Skip to content

Commit de0c0c3

Browse files
Benoit NgoNgob
Benoit Ngo
authored andcommitted
Updating init-dev makefile to add in /etc/hosts
1 parent f401d0c commit de0c0c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ flogs: ;\
5959
init-dev: ;\
6060
cp -n docker-compose.override.yml.template docker-compose.override.yml; \
6161
cp -n .env.dist .env; \
62-
echo "Add ${BASE_DOMAIN} and ${API_DOMAIN} and samltest.${BASE_DOMAIN} to your /etc/hosts"; \
63-
if grep -qL ${BASE_DOMAIN} /etc/hosts; then echo "\n127.0.0.1 ${BASE_DOMAIN} ${API_DOMAIN} samltest.${BASE_DOMAIN}" | sudo tee -a /etc/hosts ; fi
64-
62+
echo "Add ${BASE_DOMAIN} and ${API_DOMAIN} and samltest.${BASE_DOMAIN} to your /etc/hosts"; \
63+
if grep -q ${BASE_DOMAIN} /etc/hosts ; then echo "not adding to /etc/hosts" ; else echo "\n127.0.0.1 ${BASE_DOMAIN} ${API_DOMAIN} samltest.${BASE_DOMAIN}" | sudo tee -a /etc/hosts ; fi
6564
#
6665
# Theses are usefull when you use docker
6766
#

0 commit comments

Comments
 (0)