Compare commits

..

5 Commits

Author SHA1 Message Date
Moritz 3f778ef1eb php-fpm healthcheck
continuous-integration/drone/pr Build is failing Details
2023-01-10 18:24:50 +01:00
Moritz b7c6775ac6 mariadb healthcheck 2023-01-10 18:24:50 +01:00
Moritz ad126fef8e redis healthcheck 2023-01-10 18:24:50 +01:00
Moritz 6997636275 web healthcheck 2023-01-10 18:24:50 +01:00
Moritz 3156757fee feat: run occ commands from env variables as post deploy command
continuous-integration/drone/push Build is passing Details
2023-01-10 18:09:11 +01:00
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

@ -10,6 +10,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

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