Skip to content

Commit

Permalink
Update update-helm.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
szaimen committed Nov 21, 2024
1 parent a3e10d5 commit 930afb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nextcloud-aio-helm-chart/update-helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 930afb1

Please sign in to comment.