From b2308f1efea1ac9b697cf09e4ae7eed9c8d28e8a Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Wed, 14 Oct 2020 13:08:57 +0200 Subject: [PATCH] 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 --- build/common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build/common.sh b/build/common.sh index dbfb342ed11..59389fed30a 100755 --- a/build/common.sh +++ b/build/common.sh @@ -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}/"