AWS: Add sha to download-or-bust

download-or-bust was changed on the GCE side to verify a hash if passed,
so we need to pass a hash in the AWS scripts that reuse this function.
This commit is contained in:
Justin Santa Barbara 2016-03-02 09:54:13 -05:00
parent 3caa6caa04
commit b058c6b3e1
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ ensure-packages() {
# TODO: Where to get safe_format_and_mount?
mkdir -p /usr/share/google
cd /usr/share/google
download-or-bust https://raw.githubusercontent.com/GoogleCloudPlatform/compute-image-packages/82b75f314528b90485d5239ab5d5495cc22d775f/google-startup-scripts/usr/share/google/safe_format_and_mount
download-or-bust "dc96f40fdc9a0815f099a51738587ef5a976f1da" https://raw.githubusercontent.com/GoogleCloudPlatform/compute-image-packages/82b75f314528b90485d5239ab5d5495cc22d775f/google-startup-scripts/usr/share/google/safe_format_and_mount
chmod +x safe_format_and_mount
}

View File

@ -240,7 +240,7 @@ install-salt() {
for deb in "${DEBS[@]}"; do
if [ ! -e "${deb}" ]; then
download-or-bust "${URL_BASE}/${deb}"
download-or-bust "" "${URL_BASE}/${deb}"
fi
done