Skip to content

Commit 9e02f3b

Browse files
committed
fix: permission bug with plugin cache dir
1 parent 0b251f4 commit 9e02f3b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rootfs/usr/local/bin/docker-entrypoint.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
set -e
33

44
# initialize plugins from container
5-
mkdir -p ~/.helm/plugins ~/.helm/cache/plugins
6-
cp -r /helm-plguins/* ~/.helm/plugins
7-
cp -r /helm-plguins-cache/* ~/.helm/cache/plugins
5+
chown -R root:root /root/.helm/cache/plugins
6+
mkdir -p ~/.helm/plugins ~/.helm/cache/plugins || true
7+
cp -r /helm-plguins/* ~/.helm/plugins || true
8+
cp -r /helm-plguins-cache/* ~/.helm/cache/plugins || true
89

910
# kubeconfig
1011
if [ -n "$KUBECONFIG_CONTENT" ]; then

0 commit comments

Comments
 (0)