1
0
mirror of https://bitbucket.org/shim_/mumble.git synced 2019-09-08 21:58:51 +02:00

added ssl support

This commit is contained in:
shim_
2016-05-28 15:49:59 +02:00
parent 294dbcc878
commit 834902e0fc
2 changed files with 20 additions and 1 deletions

View File

@@ -30,6 +30,12 @@ if [ ! -e /data/murmur.conf ]; then
write_config_if_else "$SERVER_TEXT" 'welcometext' ''
write_config_if_else "$REGISTER_NAME" 'registerName' ''
write_config_if_else "$BANDWIDTH" 'bandwidth' ''
if [ ! -z "$SSL" ] && [ "$SSL" != "false" ]; then
NAME='murmur'
if [ ! -z "$SSL_FILENAME" ]; then NAME="$SSL_FILENAME"; fi
write_config "sslCert=/data/ssl/$NAME.pem"
write_config "sslKey=/data/ssl/$NAME.key"
fi
if [ ! -z "$DATABASE" ] && [ "$DATABASE" == "MYSQL" ]; then
if [ ! -z "$DB_NAME" ] && [ ! -z "$DB_HOST" ]; then
write_config 'dbdriver' 'QMYSQL'