|
|
|
@ -11,9 +11,7 @@ if [[ "$JIGASI_XMPP_PASSWORD" == "$OLD_JIGASI_XMPP_PASSWORD" ]]; then |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [[ ! -f /config/sip-communicator.properties ]]; then |
|
|
|
|
tpl /defaults/sip-communicator.properties > /config/sip-communicator.properties |
|
|
|
|
fi |
|
|
|
|
tpl /defaults/sip-communicator.properties > /config/sip-communicator.properties |
|
|
|
|
|
|
|
|
|
if [[ ! -f /config/logging.properties ]]; then |
|
|
|
|
cp /defaults/logging.properties /config |
|
|
|
@ -23,7 +21,7 @@ mkdir -pm777 /tmp/transcripts |
|
|
|
|
chown jigasi:jitsi /tmp/transcripts |
|
|
|
|
|
|
|
|
|
# Create Google Cloud Credentials |
|
|
|
|
if [[ $ENABLE_TRANSCRIPTIONS -eq 1 || $ENABLE_TRANSCRIPTIONS == "true" ]] && [[ ! -f /config/key.json ]]; then |
|
|
|
|
if [[ $ENABLE_TRANSCRIPTIONS -eq 1 || $ENABLE_TRANSCRIPTIONS == "true" ]]; then |
|
|
|
|
if [[ -z $GC_PROJECT_ID || -z $GC_PRIVATE_KEY_ID || -z $GC_PRIVATE_KEY || -z $GC_CLIENT_EMAIL || -z $GC_CLIENT_ID || -z $GC_CLIENT_CERT_URL ]]; then |
|
|
|
|
echo 'Transcriptions: One or more environment variables are undefined' |
|
|
|
|
exit 1 |
|
|
|
|