SpaceNinjaServer/docker-entrypoint.sh
Sainan 287d57c841
All checks were successful
Build / build (pull_request) Successful in 1m10s
chore: rename config.json.example to config-vanilla.json
Renaming file extensions can be a bit of a chore on stock Windows, so this should simplify matters. Another bonus is that the "vanilla" clarifies the general guideline for how the defaults are configured.
2025-07-30 10:52:45 +02:00

9 lines
255 B
Bash
Executable File

#!/bin/bash
set -e
if [ ! -f conf/config.json ]; then
jq --arg value "mongodb://openwfagent:spaceninjaserver@mongodb:27017/" '.mongodbUrl = $value' /app/config-vanilla.json > /app/conf/config.json
fi
exec npm run start -- --configPath conf/config.json