nextcloud: fix parameter expansion in occ script (#2702)

This commit is contained in:
Stavros Kois
2024-08-01 14:02:53 +03:00
committed by GitHub
parent 7f76d91e5d
commit aa50afd42b
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ description: A file sharing server that puts the control and security of your ow
annotations:
title: Nextcloud
type: application
version: 2.0.11
version: 2.0.12
apiVersion: v2
appVersion: 29.0.4
kubeVersion: '>=1.16.0-0'

View File

@@ -26,9 +26,9 @@ configmap:
fi
run_as() {
if [ "$(id -u)" = 0 ]; then
su -p "$user" -s /bin/bash -c 'php /var/www/html/occ "$@"' - "$@"
su -p "$user" -s /bin/bash -c "php /var/www/html/occ $(printf '%q ' "$@")"
else
/bin/bash -c 'php /var/www/html/occ "$@"' - "$@"
/bin/bash -c "php /var/www/html/occ $(printf '%q ' "$@")"
fi
}
run_as "$@"