jicofo,jigasi: always rebuild configs on start

pull/718/merge
Felix Geyer 4 years ago committed by Saúl Ibarra Corretgé
parent c52b64a39e
commit 905d431e14
  1. 4
      jicofo/rootfs/etc/cont-init.d/10-config
  2. 6
      jigasi/rootfs/etc/cont-init.d/10-config

@ -17,9 +17,7 @@ if [[ "$JICOFO_AUTH_PASSWORD" == "$OLD_JICOFO_AUTH_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

@ -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

Loading…
Cancel
Save