test: update app install scripts
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e # Exit on any error
|
set -euox pipefail
|
||||||
|
|
||||||
echo "Installing and configuring Calendar app..."
|
echo "Installing and configuring Calendar app..."
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euox pipefail
|
||||||
|
|
||||||
php /var/www/html/occ app:enable contacts
|
php /var/www/html/occ app:enable contacts
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euox pipefail
|
||||||
|
|
||||||
php /var/www/html/occ app:enable deck
|
php /var/www/html/occ app:enable deck
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euox pipefail
|
||||||
|
|
||||||
php /var/www/html/occ app:enable notes
|
php /var/www/html/occ app:enable notes
|
||||||
|
|||||||
@@ -1,13 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/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
|
php /var/www/html/occ app:enable oidc
|
||||||
|
|
||||||
# Configure OIDC for testing with dynamic client registration enabled
|
# Enable the user_oidc app (OIDC client for bearer token validation)
|
||||||
# Note: The correct config key is 'dynamic_client_registration', not 'allow_dynamic_client_registration'
|
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'
|
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
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euox pipefail
|
||||||
|
|
||||||
php /var/www/html/occ app:enable tables
|
php /var/www/html/occ app:enable tables
|
||||||
|
|||||||
Reference in New Issue
Block a user