We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2056f9a + c15cb33 commit ec5536dCopy full SHA for ec5536d
root/etc/s6-overlay/s6-rc.d/init-unifi-network-application-config/run
@@ -22,7 +22,10 @@ done
22
if [[ ! -e /config/data/system.properties ]]; then
23
if [[ -z "${MONGO_HOST}" ]]; then
24
echo "*** No MONGO_HOST set, cannot configure database settings. ***"
25
- exit 1
+ sleep infinity
26
+ elif ! nc -w1 "${MONGO_HOST}" ${MONGO_PORT} >/dev/null 2>&1; then
27
+ echo "*** Defined MONGO_HOST is not reachable, cannot proceed. ***"
28
29
else
30
sed -i "s/~MONGO_USER~/${MONGO_USER}/" /defaults/system.properties
31
sed -i "s/~MONGO_HOST~/${MONGO_HOST}/" /defaults/system.properties
0 commit comments