From b2f473c9f5cc6f55629a826fcf8fbddf66d8e512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Thu, 23 Jan 2020 15:33:26 +0100 Subject: [PATCH] Fail on curl failure... not success! --- bin/uncloud-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/uncloud-init b/bin/uncloud-init index 800f22e..670f956 100755 --- a/bin/uncloud-init +++ b/bin/uncloud-init @@ -76,7 +76,7 @@ deploy_ssh_authorized_keys () { fi curl_output=$(mktemp) - if curl "$UNCLOUD_METADATA_SERVER/fnux" --output "$curl_output"; then + if ! curl "$UNCLOUD_METADATA_SERVER/fnux" --output "$curl_output"; then echo "Something went wrong fetching the authorized_keys file from the \ metedata server." >&2 echo "CURL Output: $(cat "$curl_output")"