Make copied localtime file write-able

Some distributions have no default write-access to this file, which
means that it's not possible to update the file and rebuild the project
if not write-able. This patch fixes this by adding an additional
`chmod`.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Sascha Grunert 2020-10-14 13:08:57 +02:00
parent 89fdf5e7d3
commit b2308f1efe
No known key found for this signature in database
GPG Key ID: 8CE029DD1A866E52

View File

@ -422,6 +422,7 @@ function kube::build::build_image() {
chown -R "${USER_ID}":"${GROUP_ID}" "${LOCAL_OUTPUT_BUILD_CONTEXT}"
cp /etc/localtime "${LOCAL_OUTPUT_BUILD_CONTEXT}/"
chmod u+w "${LOCAL_OUTPUT_BUILD_CONTEXT}/localtime"
cp "${KUBE_ROOT}/build/build-image/Dockerfile" "${LOCAL_OUTPUT_BUILD_CONTEXT}/Dockerfile"
cp "${KUBE_ROOT}/build/build-image/rsyncd.sh" "${LOCAL_OUTPUT_BUILD_CONTEXT}/"