Correcting domain name variable in check_proxy_state method

This commit is contained in:
2022-06-16 08:52:09 +00:00
parent 9e588d156d
commit 7d9a18e5db
3 changed files with 10 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ ROLE=$ROLE
SERVICE_NAME=$SERVICE_NAME
PROXY_CONFIG_DIR=$PROXY_CONFIG_DIR
# Setup docker registry url path
if [[ -n "$DOCKER_REGISTRY_URL" && "$DOCKER_REGISTRY_URL" != "null" ]] ; then
@@ -168,6 +169,7 @@ fi
# call method
check_proxy_state
echo "PROXY RESTARTED SUCCESSFULY"
# in case of new proxy configuration generated needed to copy the domain name to the configs file.then remove new_config flag.
if [[ -f $PROXY_CONFIG_DIR/new_config ]] ; then
if [[ ! -f $PROXY_CONFIG_DIR/config || "$(grep $DOMAIN $PROXY_CONFIG_DIR/config 2>/dev/null)" == "" ]] ; then