feat: run occ commands from env variables as post deploy command
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Moritz 2023-01-10 18:09:11 +01:00
parent 012e9c2310
commit 3156757fee
3 changed files with 12 additions and 0 deletions

View File

@ -47,3 +47,7 @@ DEFAULT_QUOTA="10 GB"
#
# BBB_URL=https://talk.example.org/bigbluebutton/ # trailing slash!
# SECRET_BBB_SECRET_VERSION=v1
#
# OCC_CMDS="app:disable dashboard"
# OCC_CMDS="$OCC_CMDS|config:app:set sociallogin auto_create_groups --value 1"
# OCC_CMDS="$OCC_CMDS|config:app:set sociallogin hide_default_login --value 1"

View File

@ -9,6 +9,13 @@ run_occ(){
su -p www-data -s /bin/sh -c "/var/www/html/occ $@"
}
post_install_occ(){
IFS='|' read -ra CMD <<< "$OCC_CMDS"
for cmd in "${CMD[@]}"; do
run_occ "$cmd"
done
}
install_apps(){
install_apps="$@"
if [ -z "$install_apps" ]

View File

@ -50,6 +50,7 @@ services:
- admin_password
environment:
- APPS
- OCC_CMDS
- X_FRAME_OPTIONS_ALLOW_FROM
- X_FRAME_OPTIONS_ENABLED
- DOMAIN