jitsi-deployment/jvb/rootfs/etc/cont-init.d/10-config
Saúl Ibarra Corretgé a015710e54 security: don't provide default passwords
Also check if they are not provided at sstartup time and fail to start
in that case.
2020-04-06 12:23:36 +02:00

17 lines
402 B
Plaintext

#!/usr/bin/with-contenv bash
if [[ -z $JVB_AUTH_PASSWORD ]]; then
echo 'FATAL ERROR: JVB auth password must be set'
exit 1
fi
if [[ ! -f /config/sip-communicator.properties ]]; then
tpl /defaults/sip-communicator.properties > /config/sip-communicator.properties
fi
if [[ ! -f /config/logging.properties ]]; then
cp /defaults/logging.properties /config
fi
chown -R jvb:jitsi /config