From f55c6179f794d9dd32d6588286114d6a85532264 Mon Sep 17 00:00:00 2001 From: Tai Dao Date: Wed, 2 Mar 2022 16:56:57 -0800 Subject: [PATCH] Fixed startup.sh in meshcentral --- meshcentral/README.md | 2 ++ meshcentral/startup.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meshcentral/README.md b/meshcentral/README.md index d1c0ff7..c87cef9 100644 --- a/meshcentral/README.md +++ b/meshcentral/README.md @@ -59,3 +59,5 @@ networks: ``` +After everything is set up do `docker-compose up -d` in this folder to start meshcentral! + diff --git a/meshcentral/startup.sh b/meshcentral/startup.sh index d1c2ade..155fc88 100644 --- a/meshcentral/startup.sh +++ b/meshcentral/startup.sh @@ -17,7 +17,7 @@ if [ -f "meshcentral-data/config.json" ] sed -i "s/\"cert\": \"myserver.mydomain.com\"/\"cert\": \"$HOSTNAME\"/" meshcentral-data/config.json if [ "$REVERSE_PROXY" != "false" ] then - sed -i "s/\"_certUrl\": \"my\.reverse\.proxy\"/\"certUrl\": \"https:\/\/$REVERSE_PROXY:$REVERSE_PROXY_TLS_PORT\"/" meshcentral-data/config.json + sed -i "s/\"certUrl\": \"my\.reverse\.proxy\"/\"certUrl\": \"https:\/\/$REVERSE_PROXY:$REVERSE_PROXY_TLS_PORT\"/" meshcentral-data/config.json node node_modules/meshcentral exit fi