[scripts] post_mmc_image_script: chmod 644 the generated image tarball
This commit is contained in:
parent
c804de1695
commit
a2f503bd4a
@ -21,6 +21,8 @@ echo
|
|||||||
xz --compress --force "${IMAGE_PATH}" || exit 1
|
xz --compress --force "${IMAGE_PATH}" || exit 1
|
||||||
[[ ! -f "${COMPRESSED_IMAGE_PATH}" ]] && { echo "${COMPRESSED_IMAGE_PATH} not found"; exit 1; }
|
[[ ! -f "${COMPRESSED_IMAGE_PATH}" ]] && { echo "${COMPRESSED_IMAGE_PATH} not found"; exit 1; }
|
||||||
|
|
||||||
|
chmod 644 "${COMPRESSED_IMAGE_PATH}" || exit 1
|
||||||
|
|
||||||
cd "$(dirname "${COMPRESSED_IMAGE_PATH}")" || exit 1
|
cd "$(dirname "${COMPRESSED_IMAGE_PATH}")" || exit 1
|
||||||
img_name=$(basename "${COMPRESSED_IMAGE_PATH}")
|
img_name=$(basename "${COMPRESSED_IMAGE_PATH}")
|
||||||
md5sum "${img_name}" > "${COMPRESSED_IMAGE_CHECKSUM_PATH}"
|
md5sum "${img_name}" > "${COMPRESSED_IMAGE_CHECKSUM_PATH}"
|
||||||
|
Loading…
Reference in New Issue
Block a user