From 58a6be89bee6855908ad30e0baf63f3645baa8f8 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Thu, 6 Apr 2023 12:53:34 -0400 Subject: [PATCH] add scaleway --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index d21b2e5..d23dccf 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -33,6 +33,10 @@ case $CLOUD in PRIVATE_INTERFACE="private/${LOCAL_IP}" PUBLIC_INTERFACE="public/${LOCAL_IP}!${PUBLIC_IP}" ;; + scaleway) + LOCAL_IP=$(curl -s --local-port 1-1024 http://169.254.42.42/conf | grep PRIVATE_IP | cut -d = -f 2) + PUBLIC_IP=$(curl -s --local-port 1-1024 http://169.254.42.42/conf | grep PUBLIC_IP_ADDRESS | cut -d = -f 2) + ;; *) ;; esac