--- usr/share/google/fetch_script.orig 2014-12-24 22:40:30 UTC +++ usr/share/google/fetch_script @@ -84,7 +84,7 @@ function download_url_with_logfile() { # Unauthenticated download of the object. log "Downloading url from ${url} to ${dest} using curl" - curl --max-time "${CURL_TIMEOUT}" --retry "${CURL_RETRY_LIMIT}" \ + curl -s --max-time "${CURL_TIMEOUT}" --retry "${CURL_RETRY_LIMIT}" \ 2>> "${logfile}" -o "${dest}" -- "${url}" && return 0; log "Failed to download $url" @@ -108,7 +108,7 @@ function download_url() { function get_metadata_attribute() { local readonly varname=$1 - /usr/share/google/get_metadata_value "attributes/${varname}" + %%PREFIX%%/share/google/get_metadata_value "attributes/${varname}" return $? } @@ -135,7 +135,7 @@ function fetch_script() { echo "${metadata_script}" > "${script}" log "${script_type} script found in metadata." else - log $(curl "http://metadata.google.internal/computeMetadata/v1/instance/?recursive=True" -H "Metadata-Flavor: Google") + log $(curl -s "http://metadata.google.internal/computeMetadata/v1/instance/?recursive=True" -H "Metadata-Flavor: Google") log "No ${script_type} script found in metadata." fi fi