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
|
||||
.ONESHELL:
|
||||
vendor/hosts:
|
||||
@for file in $(HOSTS_LINES)
|
||||
do
|
||||
while read h
|
||||
do
|
||||
echo $${h} | \
|
||||
sed 's|IPV4_PREFIX|$(IPV4_PREFIX)|g' | \
|
||||
sed 's|LOCAL_DOMAIN|$(LOCAL_DOMAIN)|g'
|
||||
done < $${file};
|
||||
@for file in $(HOSTS_LINES); do \
|
||||
while read h; do \
|
||||
echo $${h}| sed 's|IPV4_PREFIX|$(IPV4_PREFIX)|g' | sed 's|LOCAL_DOMAIN|$(LOCAL_DOMAIN)|g'; \
|
||||
done < $${file}; \
|
||||
done > $@
|
||||
|
||||
# Display changes for /etc/hosts
|
||||
|
|
Loading…
Reference in a new issue