bigbluebutton-Github/build/packages-template/bbb-transcription-controller/after-install.sh
Lucas 4dea4b9967 feat: Initial implementation of Gladia transcriptions to BBB 2.7 (#19091)
---------

Co-authored-by: Anton Georgiev <anto.georgiev@gmail.com>
2024-03-18 10:44:56 -04:00

22 lines
628 B
Bash
Executable File

#!/bin/bash -e
case "$1" in
configure|upgrade|1|2)
TARGET=/usr/local/bigbluebutton/bbb-transcription-controller/config/default.yml
cp /usr/local/bigbluebutton/bbb-transcription-controller/config/default.example.yml $TARGET
touch /var/log/bigbluebutton/gladia-proxy.log
chown bigbluebutton:bigbluebutton /var/log/bigbluebutton/gladia-proxy.log
startService bbb-transcription-controller|| echo "bbb-transcription-controller could not be registered or started"
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac