feat: run occ commands from env variables as post deploy command
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
012e9c2310
commit
3156757fee
|
@ -47,3 +47,7 @@ DEFAULT_QUOTA="10 GB"
|
||||||
#
|
#
|
||||||
# BBB_URL=https://talk.example.org/bigbluebutton/ # trailing slash!
|
# BBB_URL=https://talk.example.org/bigbluebutton/ # trailing slash!
|
||||||
# SECRET_BBB_SECRET_VERSION=v1
|
# 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"
|
||||||
|
|
7
abra.sh
7
abra.sh
|
@ -9,6 +9,13 @@ run_occ(){
|
||||||
su -p www-data -s /bin/sh -c "/var/www/html/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(){
|
||||||
install_apps="$@"
|
install_apps="$@"
|
||||||
if [ -z "$install_apps" ]
|
if [ -z "$install_apps" ]
|
||||||
|
|
|
@ -50,6 +50,7 @@ services:
|
||||||
- admin_password
|
- admin_password
|
||||||
environment:
|
environment:
|
||||||
- APPS
|
- APPS
|
||||||
|
- OCC_CMDS
|
||||||
- X_FRAME_OPTIONS_ALLOW_FROM
|
- X_FRAME_OPTIONS_ALLOW_FROM
|
||||||
- X_FRAME_OPTIONS_ENABLED
|
- X_FRAME_OPTIONS_ENABLED
|
||||||
- DOMAIN
|
- DOMAIN
|
||||||
|
|
Loading…
Reference in New Issue