port gestion ok
This commit is contained in:
12
Makefile
12
Makefile
@@ -95,18 +95,18 @@ logs: require build_logs up
|
||||
require:
|
||||
# remove all the lines starting with "HOST_VOLUME_" in .env
|
||||
@echo $(B_PURPLE)"removes all lines starting with 'HOST_VOLUMES' in .env"$(RESET)
|
||||
@sed -i "/^HOST_VOLUME_/d" ./srcs/.env
|
||||
sed -i "/^HOST_VOLUME_/d" ./srcs/.env
|
||||
# add new expended lines starting with "HOST_VOLUME_" after the line "# EXPENDED LINES :" in .env
|
||||
@echo $(B_PURPLE)"add new expended lines starting with 'HOST_VOLUME_' in .env"$(RESET)
|
||||
@$(foreach val,$(EXPENDED_ENV_VAR),sed -i "/^# EXPENDED LINES/a\$(val)" ./srcs/.env;)
|
||||
$(foreach val,$(EXPENDED_ENV_VAR),sed -i "/^# EXPENDED LINES/a\$(val)" ./srcs/.env;)
|
||||
# create the volumes directories
|
||||
@echo $(B_PURPLE)"create the volumes directories"$(RESET)
|
||||
@mkdir -p $(VOLUMES_D)
|
||||
mkdir -p $(VOLUMES_D)
|
||||
# verify if the wordpress url is added to the local path
|
||||
@echo $(B_PURPLE)"verify if the wordpress url is added to the local path"$(RESET)
|
||||
@- if ! grep "127.0.0.1 $(WP_URL)" /etc/hosts 2> /dev/null; then \
|
||||
@echo $(B_PURPLE)"nop ! adding it"$(RESET) \
|
||||
bash -c 'echo -e "\n# adding for lejourduprof (you can delete it)\n127.0.0.1 $(WP_URL)" >> /etc/hosts'; \
|
||||
- if ! grep "127.0.0.1 $(WP_URL)" /etc/hosts 2> /dev/null; then \
|
||||
echo $(B_PURPLE)"nop ! adding it"$(RESET) \
|
||||
bash -c 'echo -e "\n# adding for lejourduprof (you can delete it)\n127.0.0.1 $(WP_URL)" >> /etc/hosts';
|
||||
fi
|
||||
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user