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.
1 parent 2056f9a commit b5696dcCopy full SHA for b5696dc
root/etc/s6-overlay/s6-rc.d/init-unifi-network-application-config/run
@@ -23,6 +23,9 @@ 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
26
+ elif ! nc -w1 "${MONGO_HOST}" ${MONGO_PORT}; then
27
+ echo "*** Defined MONGO_HOST is not reachable, cannot proceed. ***"
28
+ exit 1
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