From 930afb13865834fcae2bd2ccc889364b718af638 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Thu, 21 Nov 2024 20:14:06 +0100 Subject: [PATCH] Update update-helm.sh --- nextcloud-aio-helm-chart/update-helm.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nextcloud-aio-helm-chart/update-helm.sh b/nextcloud-aio-helm-chart/update-helm.sh index ca27cec1203..cb294866209 100755 --- a/nextcloud-aio-helm-chart/update-helm.sh +++ b/nextcloud-aio-helm-chart/update-helm.sh @@ -170,10 +170,10 @@ for variable in "${DEPLOYMENTS[@]}"; do GROUP=33 echo ' {{- if eq .Values.RPSS_ENABLED "yes" }}' > /tmp/pod.securityContext else - echo "" > /tmp/pod.securityContext + USER="$(grep runAsUser "$variable" | grep -oP '[0-9]+')" + GROUP="$USER" + echo "" > /tmp/pod.securityContext fi - USER="$(grep runAsUser "$variable" | grep -oP '[0-9]+')" - GROUP="$USER" sed -i "/runAsUser:/d" "$variable" sed -i "/capabilities:/d" "$variable" if [ -n "$USER" ]; then