Error message created in case no docker registry url defined.
This commit is contained in:
@@ -15,11 +15,11 @@ PROXY_CONFIG_DIR=$PROXY_CONFIG_DIR
|
||||
|
||||
# Setup docker registry url path
|
||||
|
||||
if [[ ! -z "$REGISTRY_URL" ]] || [[ "$REGISTRY_URL" != "null" ]] ; then
|
||||
if [[ $REGISTRY_URL != "" ]] || [[ $REGISTRY_URL != "null" ]] ; then
|
||||
SETUP="/setup";
|
||||
else
|
||||
SETUP="setup";
|
||||
$REGISTRY_URL="";
|
||||
|
||||
echo "Docker registry URL not defined in configuration";
|
||||
fi
|
||||
|
||||
service_exec="docker run --rm -v /etc/user/config/services/:/services/:ro -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker:ro $REGISTRY_URL$SETUP /scripts/service-exec"
|
||||
|
Reference in New Issue
Block a user