bigbluebutton-Github/build/packages-template/bbb-livekit/after-install.sh
Daniel Molkentin 6799809b6b Add Livekit package
For now, we will not rebuild livekit, but rather use the precompiled
project binaries.

As per BBB convention, this package provides an immutable default
configuration file which gets merged with a user-modifiable file
in /etc/bigbluebutton.
2023-11-28 13:25:50 +01:00

25 lines
688 B
Bash
Executable File

#!/bin/bash -e
if [ ! -f /etc/bigbluebutton/livekit.yaml ]; then
keys="$(livekit-server generate-keys|awk 'BEGIN { ORS=": "} { print $3 }')"
(umask 007; cat << EOT
# This file will be merged with /usr/share/livekit-server/livekit.yaml
# on startup. Settings specified here will take precedence.
logging:
level: debug
keys:
$keys
cat << EOT > /etc/bigbluebutton/livekit.yaml
chown bigbluebutton:bigbluebutton /etc/bigbluebutton/livekit.yaml
fi
if [ ! -f /.dockerenv ]; then
systemctl enable livekit-server.service
systemctl daemon-reload
startService livekit-server.service || echo "livekit-server service could not be registered or started"
fi
EOT
)
fi