diff --git a/services/nextcloud/deployment.yaml b/services/nextcloud/deployment.yaml index a5b9ef1..1f6f89f 100644 --- a/services/nextcloud/deployment.yaml +++ b/services/nextcloud/deployment.yaml @@ -69,18 +69,17 @@ spec: 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 + rm -rf "${target}" + 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}" + su -s /bin/sh www-data -c "php /var/www/html/occ app:enable --force ${app}" || true } install_app oidc_login https://github.com/pulsejet/nextcloud-oidc-login/releases/download/v3.2.2/oidc_login.tar.gz install_app external https://github.com/nextcloud-releases/external/releases/download/v5.4.1/external-v5.4.1.tar.gz - install_app mail https://github.com/nextcloud/mail/releases/download/v3.7.24/mail-3.7.24.tar.gz + install_app mail https://github.com/nextcloud-releases/mail/releases/download/v3.7.24/mail-stable3.7.tar.gz fi env: - name: POSTGRES_HOST