mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-15 11:22:43 +03:00
imds: read autodetected cloud provider
This commit is contained in:
parent
7a87dfe08d
commit
b2821a7a69
4
bin/imds
4
bin/imds
@ -87,6 +87,10 @@ _imds_nic_index() { cat "/sys/class/net/$1/address"; }
|
|||||||
|
|
||||||
### load cloud-specific variables and functions
|
### load cloud-specific variables and functions
|
||||||
|
|
||||||
|
if [ "$CLOUD" = "auto" ]; then
|
||||||
|
CLOUD=$(cat "$TINY_CLOUD_VAR/.autodetect")
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d "$LIBDIR/tiny-cloud/cloud/$CLOUD" ]; then
|
if [ ! -d "$LIBDIR/tiny-cloud/cloud/$CLOUD" ]; then
|
||||||
echo "ERROR: Unknown Cloud '$CLOUD'" >&2
|
echo "ERROR: Unknown Cloud '$CLOUD'" >&2
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user