Update run

This commit is contained in:
driz 2023-10-16 11:53:03 -04:00 committed by GitHub
parent b5696dc13f
commit 8f96e5dd7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,10 +22,10 @@ done
if [[ ! -e /config/data/system.properties ]]; then
if [[ -z "${MONGO_HOST}" ]]; then
echo "*** No MONGO_HOST set, cannot configure database settings. ***"
exit 1
sleep infinity
elif ! nc -w1 "${MONGO_HOST}" ${MONGO_PORT}; then
echo "*** Defined MONGO_HOST is not reachable, cannot proceed. ***"
exit 1
sleep infinity
else
sed -i "s/~MONGO_USER~/${MONGO_USER}/" /defaults/system.properties
sed -i "s/~MONGO_HOST~/${MONGO_HOST}/" /defaults/system.properties