Skip to content
Snippets Groups Projects
Commit 63fbdee2 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

swh-storage: add specific entry point for create-object-references-partitions

This entry point needs shell expansions for dates, so we hook it up
directly into the entry point rather than expect kubernetes to be able
to pass it from the pod definition.
parent 11178616
No related branches found
Tags v0.0.313
1 merge request!34swh-storage: add specific entry point for create-object-references-partitions
......@@ -11,6 +11,10 @@ case "$1" in
echo "Running swh command $@"
exec swh $@
;;
"create-object-references-partitions")
echo "Running swh storage create-object-references-partitions $(date +%Y-%m-%d) $(date -d '+1 month' +%Y-%m-%d)"
exec swh --log-level ${LOG_LEVEL} storage create-object-references-partitions "$(date +%Y-%m-%d)" "$(date -d '+1 month' +%Y-%m-%d)"
;;
*)
echo Starting the swh-storage API server
exec gunicorn --bind 0.0.0.0:${PORT} \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment