mirror of
https://github.com/truenas/charts.git
synced 2026-06-15 06:28:46 +08:00
nextcloud: fix parameter expansion in occ script (#2702)
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user