2022-11-16 14:48:21 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-10-15 11:21:39 +00:00
|
|
|
export FPM_TUNE_VERSION=v4
|
2022-10-13 14:58:10 +00:00
|
|
|
export NGINX_CONF_VERSION=v4
|
2021-11-15 10:27:14 +00:00
|
|
|
export MY_CNF_VERSION=v4
|
2022-10-13 14:58:10 +00:00
|
|
|
export ENTRYPOINT_VERSION=v2
|
2021-08-26 09:22:45 +00:00
|
|
|
|
2022-11-08 14:46:13 +00:00
|
|
|
run_occ(){
|
|
|
|
su -p www-data -s /bin/sh -c "/var/www/html/occ $@"
|
|
|
|
}
|
|
|
|
|
|
|
|
install_apps(){
|
|
|
|
install_apps="$@"
|
|
|
|
if [ -z "$install_apps" ]
|
|
|
|
then
|
|
|
|
install_apps=$APPS
|
|
|
|
fi
|
|
|
|
for app in $install_apps
|
|
|
|
do
|
|
|
|
run_occ "app:install $app"
|
|
|
|
done
|
|
|
|
}
|
2022-11-16 14:48:21 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
}
|