mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
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:
parent
89fdf5e7d3
commit
b2308f1efe
@ -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}/"
|
||||
|
Loading…
Reference in New Issue
Block a user