Update docker/mjolnir/start.sh
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
colin 2024-02-05 01:37:01 +00:00
parent e01459cf2d
commit 087ccb44af
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ mkdir -p /etc/mjolnir
# Always copy the default to config to ensure it's the latest before applying changes
cp $DEFAULT_CONFIG_PATH $CONFIG_PATH
# Replace values in the config file
# Apply environment variable configurations to the config file
sed -i "s|homeserverUrl:.*|homeserverUrl: \"$HOME_SERVER_URL\"|" $CONFIG_PATH
sed -i "s|rawHomeserverUrl:.*|rawHomeserverUrl: \"$RAW_HOME_SERVER_URL\"|" $CONFIG_PATH
sed -i "s|accessToken:.*|accessToken: \"$ACCESS_TOKEN\"|" $CONFIG_PATH
@ -34,4 +34,4 @@ sed -i "/^#.*dsn:/s|# dsn:.*|dsn: \"$SENTRY_DSN\"|" $CONFIG_PATH
sed -i "/^#.*tracesSampleRate:/s|# tracesSampleRate:.*|tracesSampleRate: $SENTRY_TRACES_SAMPLE_RATE|" $CONFIG_PATH
sed -i "s|address:.*|address: \"$WEB_LISTEN_ADDRESS\"|" $CONFIG_PATH
exec node /mjolnir/index.js --config $CONFIG_PATH
exec node /mjolnir/index.js