Fix novnc init asset copy options
When novnc pod is re-run because of host reboot and so on, novnc pod has existing volume /tmp/usr/share, which has 0444 permissions. So init container occurs an error while it tries to copy asset files. cp: cannot create regular file '/tmp/usr/share/novnc/index.html': Permission denied With -f option, the init container can copy without errors. Change-Id: I56d928b7f4a30a6be29b47560357a3b4f5eec764 Signed-off-by: hagun.kim <hagun.kim@samsung.com>
This commit is contained in:
parent
283f3a2d63
commit
360ee8255e
@ -20,7 +20,7 @@ set -ex
|
|||||||
|
|
||||||
console_kind="{{- .Values.console.console_kind -}}"
|
console_kind="{{- .Values.console.console_kind -}}"
|
||||||
if [ "${console_kind}" == "novnc" ] ; then
|
if [ "${console_kind}" == "novnc" ] ; then
|
||||||
cp -vaR /usr/share/novnc/* /tmp/usr/share/novnc/
|
cp -vaRf /usr/share/novnc/* /tmp/usr/share/novnc/
|
||||||
elif [ "${console_kind}" == "spice" ] ; then
|
elif [ "${console_kind}" == "spice" ] ; then
|
||||||
cp -vaR /usr/share/spice-html5/* /tmp/usr/share/spice-html5/
|
cp -vaRf /usr/share/spice-html5/* /tmp/usr/share/spice-html5/
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user