forked from TrueCloudLab/frostfs-dev-env
fix hosts
Signed-off-by: KickSeason <ztgoforit@163.com>
This commit is contained in:
parent
a3b2dfbff3
commit
ea32b6a7b0
1 changed files with 4 additions and 8 deletions
12
Makefile
12
Makefile
|
@ -54,14 +54,10 @@ down:
|
||||||
.PHONY: vendor/hosts
|
.PHONY: vendor/hosts
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
vendor/hosts:
|
vendor/hosts:
|
||||||
@for file in $(HOSTS_LINES)
|
@for file in $(HOSTS_LINES); do \
|
||||||
do
|
while read h; do \
|
||||||
while read h
|
echo $${h}| sed 's|IPV4_PREFIX|$(IPV4_PREFIX)|g' | sed 's|LOCAL_DOMAIN|$(LOCAL_DOMAIN)|g'; \
|
||||||
do
|
done < $${file}; \
|
||||||
echo $${h} | \
|
|
||||||
sed 's|IPV4_PREFIX|$(IPV4_PREFIX)|g' | \
|
|
||||||
sed 's|LOCAL_DOMAIN|$(LOCAL_DOMAIN)|g'
|
|
||||||
done < $${file};
|
|
||||||
done > $@
|
done > $@
|
||||||
|
|
||||||
# Display changes for /etc/hosts
|
# Display changes for /etc/hosts
|
||||||
|
|
Loading…
Reference in a new issue