bugfix: run 'node translate.js extractall' only when DISABLE_TRANSLATE is not set

This commit is contained in:
Simon Schön
2022-06-09 21:25:01 +02:00
parent d06ca601ff
commit cf553d1a0f
4 changed files with 39 additions and 25 deletions

View File

@@ -17,7 +17,7 @@ if [ -f "meshcentral-data/config.json" ]
node meshcentral/meshcentral
else
cp config.json.template meshcentral-data/config.json
if [ $USE_MONGODB == true ]; then
if ! [ -z "$USE_MONGODB" ] && [ "$USE_MONGODB" == "true" ]; then
sed -i "s/\"_mongoDb\": null/\"mongoDb\": \"mongodb:\/\/$MONGO_INITDB_ROOT_USERNAME:$MONGO_INITDB_ROOT_PASSWORD@mongodb:27017\"/" meshcentral-data/config.json
fi
sed -i "s/\"cert\": \"myserver.mydomain.com\"/\"cert\": \"$HOSTNAME\"/" meshcentral-data/config.json