mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2026-05-19 04:26:34 +00:00
13 lines
310 B
Bash
Executable File
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 |