test: update app install scripts

This commit is contained in:
Chris Coutinho
2025-10-13 18:07:49 +02:00
parent 2b11718c43
commit 7d8ba39434
6 changed files with 23 additions and 7 deletions
@@ -1,6 +1,6 @@
#!/bin/bash
set -e # Exit on any error
set -euox pipefail
echo "Installing and configuring Calendar app..."
@@ -1,3 +1,5 @@
#!/bin/bash
set -euox pipefail
php /var/www/html/occ app:enable contacts
@@ -1,3 +1,5 @@
#!/bin/bash
set -euox pipefail
php /var/www/html/occ app:enable deck
@@ -1,3 +1,5 @@
#!/bin/bash
set -euox pipefail
php /var/www/html/occ app:enable notes
@@ -1,13 +1,21 @@
#!/bin/bash
set -e
echo "Installing and configuring OIDC app for testing..."
set -euox pipefail
# Enable the OIDC app
echo "Installing and configuring OIDC apps for testing..."
# Enable the OIDC Identity Provider app
php /var/www/html/occ app:install oidc || true
php /var/www/html/occ app:enable oidc
# Configure OIDC for testing with dynamic client registration enabled
# Note: The correct config key is 'dynamic_client_registration', not 'allow_dynamic_client_registration'
# Enable the user_oidc app (OIDC client for bearer token validation)
php /var/www/html/occ app:install user_oidc || true
php /var/www/html/occ app:enable user_oidc
# Configure OIDC Identity Provider with dynamic client registration enabled
php /var/www/html/occ config:app:set oidc dynamic_client_registration --value='true'
echo "OIDC app installed and configured successfully"
# Configure user_oidc to validate bearer tokens from the OIDC Identity Provider
php /var/www/html/occ config:system:set user_oidc oidc_provider_bearer_validation --value=true --type=boolean
echo "OIDC apps installed and configured successfully"
@@ -1,3 +1,5 @@
#!/bin/bash
set -euox pipefail
php /var/www/html/occ app:enable tables