feature/sso-hardening #9

Merged
bstein merged 685 commits from feature/sso-hardening into main 2026-01-13 20:23:26 +00:00
Showing only changes of commit 7a7433f824 - Show all commits

View File

@ -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