diff --git a/images/replayer/entrypoint.sh b/images/replayer/entrypoint.sh old mode 100755 new mode 100644 index e051615..be451f5 --- a/images/replayer/entrypoint.sh +++ b/images/replayer/entrypoint.sh @@ -1,32 +1,32 @@ #!/bin/bash set -e # generate the config file from the 'template' if [ -f /etc/softwareheritage/config.yml.tmpl ]; then # I know... I know! eval "echo \"`cat /etc/softwareheritage/config.yml.tmpl`\"" > \ /etc/softwareheritage/config.yml fi # For debugging purpose echo "### CONFIG FILE ###" cat /etc/softwareheritage/config.yml echo "###################" case "$1" in "shell"|"sh"|"bash") exec bash -i ;; "graph-replayer") wait-for-it storage:5002 echo "Starting the SWH mirror graph replayer" - exec sh -c "trap : TERM INT; while :; do swh --log-level ${LOG_LEVEL:-WARNING} storage replay; done" + exec swh --log-level ${LOG_LEVEL:-WARNING} storage replay ;; "content-replayer") wait-for-it objstorage:5003 echo "Starting the SWH mirror content replayer" - exec sh -c "trap : TERM INT; while :; do swh --log-level ${LOG_LEVEL:-WARNING} objstorage replay; done" + exec swh --log-level ${LOG_LEVEL:-WARNING} objstorage replay ;; esac