mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-30 17:09:55 +03:00
parent
8055baa951
commit
476a441715
4 changed files with 6 additions and 6 deletions
|
@ -3,16 +3,16 @@ $@
|
||||||
sed -i "s,\${URL},${URL}," scripts/docker-registry-ui.js
|
sed -i "s,\${URL},${URL}," scripts/docker-registry-ui.js
|
||||||
sed -i "s,\${REGISTRY_TITLE},${REGISTRY_TITLE}," 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
|
if [ -z "${DELETE_IMAGES}" ] || [ "${DELETE_IMAGES}" = false ] ; then
|
||||||
sed -i -r "s/(isImageRemoveActivated[:=])[^,;]*/\1false/" scripts/docker-registry-ui.js
|
sed -i -r "s/(isImageRemoveActivated[:=])[^,;]*/\1false/" scripts/docker-registry-ui.js
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${REGISTRY_URL}" ]] ; then
|
if [ -n "${REGISTRY_URL}" ] ; then
|
||||||
sed -i "s,\${REGISTRY_URL},${REGISTRY_URL}," /etc/nginx/conf.d/default.conf
|
sed -i "s,\${REGISTRY_URL},${REGISTRY_URL}," /etc/nginx/conf.d/default.conf
|
||||||
sed -i "s,#!,," /etc/nginx/conf.d/default.conf
|
sed -i "s,#!,," /etc/nginx/conf.d/default.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$@" ]]; then
|
if [ -z "$@" ]; then
|
||||||
nginx -g "daemon off;"
|
nginx -g "daemon off;"
|
||||||
else
|
else
|
||||||
$@
|
$@
|
||||||
|
|
2
dist/scripts/docker-registry-ui-static.js
vendored
2
dist/scripts/docker-registry-ui-static.js
vendored
File diff suppressed because one or more lines are too long
2
dist/scripts/docker-registry-ui.js
vendored
2
dist/scripts/docker-registry-ui.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "docker-registry-ui",
|
"name": "docker-registry-ui",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "./node_modules/gulp/bin/gulp.js build"
|
"build": "./node_modules/gulp/bin/gulp.js build"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue