Make update-trac-trac-urls add essentials

The update-trac-trac-urls script only commits the edited file.
This commit is contained in:
Thomas Stokes committed 2023-12-19 16:20:58 +01:00
1 parent 6c6094afb7
commit f7927009b3
1 file changed
+2 -1
@@ -2,5 +2,6 @@
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 add "${GIT_ROOT}/configuration/tractrac-json-urls"
git commit -m "Updated tractrac-json-urls"
git push