From 7a7433f8248afd70915c29c9dfdf1cf866334e46 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 6 Jan 2026 21:39:55 -0300 Subject: [PATCH] nextcloud: install oidc/mail/external apps from releases --- services/nextcloud/deployment.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/services/nextcloud/deployment.yaml b/services/nextcloud/deployment.yaml index e148707..53678a4 100644 --- a/services/nextcloud/deployment.yaml +++ b/services/nextcloud/deployment.yaml @@ -65,10 +65,22 @@ spec: fi installed="$(su -s /bin/sh www-data -c "php /var/www/html/occ status" 2>/dev/null | awk '/installed:/{print $3}' || true)" if [ "${installed}" = "true" ]; then - for app in oidc_login external mail; do - su -s /bin/sh www-data -c "php /var/www/html/occ app:install ${app}" || true + install_app() { + app="$1" + url="$2" + target="/var/www/html/custom_apps/${app}" + if [ ! -d "${target}" ]; then + mkdir -p /tmp/nextcloud-apps + curl -fsSL "${url}" -o "/tmp/nextcloud-apps/${app}.tar.gz" + tar -xzf "/tmp/nextcloud-apps/${app}.tar.gz" -C /var/www/html/custom_apps + rm -f "/tmp/nextcloud-apps/${app}.tar.gz" + chown -R 33:33 "${target}" + fi su -s /bin/sh www-data -c "php /var/www/html/occ app:enable ${app}" || true - done + } + install_app oidc_login https://github.com/pulsejet/nextcloud-oidc-login/releases/latest/download/oidc_login.tar.gz + install_app external https://github.com/nextcloud/external/releases/latest/download/external.tar.gz + install_app mail https://github.com/nextcloud/mail/releases/latest/download/mail.tar.gz fi env: - name: POSTGRES_HOST