Add install_bbb app command

This commit is contained in:
Philipp Rothmann 2022-11-16 15:48:21 +01:00 committed by Christian Galo
parent 8a3283e398
commit 95b902f7ab
1 changed files with 18 additions and 0 deletions

18
abra.sh
View File

@ -1,3 +1,5 @@
#!/bin/bash
export FPM_TUNE_VERSION=v4
export NGINX_CONF_VERSION=v4
export MY_CNF_VERSION=v4
@ -18,3 +20,19 @@ install_apps(){
run_occ "app:install $app"
done
}
set_app_config(){
APP=$1
KEY=$2
VALUE=$3
run_occ "config:app:set $APP $KEY --value $VALUE"
}
install_bbb(){
URL=$1 # https://talk.example.org/bigbluebutton/ (trailing slash!)
SECRET=$2 # bbb secret key
install_apps bbb
set_app_config bbb app.navigation true
set_app_config bbb api.url "$URL"
set_app_config bbb api.secret "$SECRET"
}