diff --git a/scripts/check_proxy_state.sh b/scripts/check_proxy_state.sh index 2f300ad..69128bb 100755 --- a/scripts/check_proxy_state.sh +++ b/scripts/check_proxy_state.sh @@ -50,7 +50,7 @@ do_proxy_restart() { done # 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 [[ "$(grep $DOMAIN $PROXY_CONFIG_DIR/config)" == "" ]] ; then + if [[ "$(grep $DOMAIN $PROXY_CONFIG_DIR/config)" == "" || ! -f $PROXY_CONFIG_DIR/config ]] ; then cat $PROXY_CONFIG_DIR/new_config >> $PROXY_CONFIG_DIR/config; fi