mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 09:56:59 +02:00
add sed per marineam
This commit is contained in:
parent
d327631f16
commit
7f460a65cd
@ -13,6 +13,10 @@ if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sed -i -e '/^COREOS_PUBLIC_IPV4=/d' \
|
||||
-e '/^COREOS_PRIVATE_IPV4=/d' \
|
||||
"${ENV}"
|
||||
|
||||
# get public ip from metadata
|
||||
PUB_IP_URL=http://169.254.169.254/latest/meta-data/public-ipv4
|
||||
IP=$(/usr/bin/curl --fail -s "$PUB_IP_URL")
|
||||
|
Loading…
Reference in New Issue
Block a user