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")"