mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-23 22:19:13 +00:00
7 lines
394 B
Bash
Executable File
7 lines
394 B
Bash
Executable File
#!/bin/bash
|
|
GIT_ROOT=/home/wiki/gitwiki
|
|
mongo --quiet "mongodb://dbserver.internal.sapsailing.com:10201/winddb?replicaSet=archive" --eval 'db.TRACTRAC_CONFIGURATIONS.find({}, {TT_CONFIG_JSON_URL : 1}).toArray()' | grep -v ObjectId | jq -r '.[].TT_CONFIG_JSON_URL' | sort -u >"${GIT_ROOT}/configuration/tractrac-json-urls"
|
|
cd "${GIT_ROOT}"
|
|
git commit -m "Updated tractrac-json-urls" -a
|
|
git push
|