File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
etc/s6-overlay/s6-rc.d/init-unifi-network-application-config Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 41
41
# unifi.throughput.port=6789
42
42
#
43
43
db.mongo.local =false
44
- db.mongo.uri =mongodb://~MONGO_USER~:~MONGO_PASS~@~MONGO_HOST~:~MONGO_PORT~/~MONGO_DBNAME~?tls=~MONGO_TLS~&authSource= ~MONGO_AUTHSOURCE~
45
- statdb.mongo.uri =mongodb://~MONGO_USER~:~MONGO_PASS~@~MONGO_HOST~:~MONGO_PORT~/~MONGO_DBNAME~_stat?tls=~MONGO_TLS~&authSource= ~MONGO_AUTHSOURCE~
44
+ db.mongo.uri =mongodb://~MONGO_USER~:~MONGO_PASS~@~MONGO_HOST~:~MONGO_PORT~/~MONGO_DBNAME~?tls=~MONGO_TLS~~MONGO_AUTHSOURCE~
45
+ statdb.mongo.uri =mongodb://~MONGO_USER~:~MONGO_PASS~@~MONGO_HOST~:~MONGO_PORT~/~MONGO_DBNAME~_stat?tls=~MONGO_TLS~~MONGO_AUTHSOURCE~
46
46
unifi.db.name =~MONGO_DBNAME~
Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ if [[ ! -e /config/data/system.properties ]]; then
48
48
sed -i "s/~MONGO_TLS~/false/" /defaults/system.properties
49
49
fi
50
50
if [[ -z "${MONGO_AUTHSOURCE}" ]]; then
51
- sed -i "s/~MONGO_AUTHSOURCE~/${MONGO_DBNAME} /" /defaults/system.properties
51
+ sed -i "s/~MONGO_AUTHSOURCE~//" /defaults/system.properties
52
52
else
53
- sed -i "s/~MONGO_AUTHSOURCE~/${MONGO_AUTHSOURCE}/" /defaults/system.properties
53
+ sed -i "s/~MONGO_AUTHSOURCE~/\&authSource= ${MONGO_AUTHSOURCE}/" /defaults/system.properties
54
54
fi
55
55
cp /defaults/system.properties /config/data
56
56
fi
You can’t perform that action at this time.
0 commit comments