mirror of
https://github.com/outbackdingo/docker-registry-ui.git
synced 2026-04-07 18:07:06 +00:00
Merge tags and scripts; now it will be `docker-registry-ui.js` and `docker-registry-ui-static.js` New sort for tags; will use numerical sort when it is possible
20 lines
578 B
Bash
Executable File
20 lines
578 B
Bash
Executable File
#!/bin/sh
|
|
$@
|
|
sed -i "s,\${URL},${URL}," scripts/docker-registry-ui.js
|
|
sed -i "s,\${REGISTRY_TITLE},${REGISTRY_TITLE}," scripts/docker-registry-ui.js
|
|
|
|
if [ -z "${DELETE_IMAGES}" ] || [ "${DELETE_IMAGES}" = false ] ; then
|
|
sed -i "s/registryUI.isImageRemoveActivated *= *[^,;]*/registryUI.isImageRemoveActivated=false/" scripts/docker-registry-ui.js
|
|
fi
|
|
|
|
if [ -n "${REGISTRY_URL}" ] ; then
|
|
sed -i "s,\${REGISTRY_URL},${REGISTRY_URL}," /etc/nginx/conf.d/default.conf
|
|
sed -i "s,#!,," /etc/nginx/conf.d/default.conf
|
|
fi
|
|
|
|
if [ -z "$@" ]; then
|
|
nginx -g "daemon off;"
|
|
else
|
|
$@
|
|
fi
|