From aa50afd42b52cf1c9e3904c1f834e141e04af24d Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Thu, 1 Aug 2024 14:02:53 +0300 Subject: [PATCH] nextcloud: fix parameter expansion in occ script (#2702) --- library/ix-dev/charts/nextcloud/Chart.yaml | 2 +- .../ix-dev/charts/nextcloud/templates/_nextcloud-configs.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/ix-dev/charts/nextcloud/Chart.yaml b/library/ix-dev/charts/nextcloud/Chart.yaml index de71129598..e6df62ceb8 100644 --- a/library/ix-dev/charts/nextcloud/Chart.yaml +++ b/library/ix-dev/charts/nextcloud/Chart.yaml @@ -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' diff --git a/library/ix-dev/charts/nextcloud/templates/_nextcloud-configs.tpl b/library/ix-dev/charts/nextcloud/templates/_nextcloud-configs.tpl index c32ccfa7fa..ea31570ad7 100644 --- a/library/ix-dev/charts/nextcloud/templates/_nextcloud-configs.tpl +++ b/library/ix-dev/charts/nextcloud/templates/_nextcloud-configs.tpl @@ -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 "$@"