bigbluebutton-Github/akka-bbb-fsesl/src/debian/DEBIAN/preinst
Daniel Schreiber d53a5f52a5 let bbb-apps-akka read an override config file from /etc/bigbluebutton
This change introduces a config file
`/etc/bigbluebutton/bbb-fsesl-akka.conf` which reads the default config
from packages and allows operators to keep their own config file changes
across package upgrades.

bbb-conf is adjusted to deal with this change.
2021-02-23 12:55:48 +01:00

31 lines
569 B
Bash

#!/bin/sh
set -e
write_config_file() {
mkdir -p /etc/bigbluebutton
cat <<END > "${OP_CONFIG}"
// include default config from upstream
include "${PACKAGE_CONFIG}"
// you can customize everything starting from here.
freeswitch {
esl {
password="ClueCon"
}
}
END
}
case "$1" in
install|upgrade|1|2)
PACKAGE_CONFIG=/usr/share/bbb-fsesl-akka/conf/application.conf
OP_CONFIG=/etc/bigbluebutton/bbb-fsesl-akka.conf
# create config file if it does not exist
if [ ! -f "${OP_CONFIG}" ]; then
write_config_file
fi
esac