Files
docker-registry-ui/bin/entrypoint

13 lines
310 B
Bash
Executable File

#!/bin/bash
$@
sed -i "s,\${URL},${URL}," scripts/script.js
if [ -z "${DELETE_IMAGES}" ] || [ "${DELETE_IMAGES}" = false ] ; then
sed -i "s/registryUI.isImageRemoveActivated *= *[^,;]*/registryUI.isImageRemoveActivated=false/" scripts/script.js
fi
if [ -z "$@" ]; then
nginx -g "daemon off;"
else
$@
fi