From 16f908f880b03b714c81beba136c3ef8753891a7 Mon Sep 17 00:00:00 2001 From: gyurix Date: Thu, 9 Sep 2021 10:37:12 +0200 Subject: [PATCH] Minor changes. --- scripts/check_proxy_state.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/check_proxy_state.sh b/scripts/check_proxy_state.sh index 0dc00b2..b5e140d 100755 --- a/scripts/check_proxy_state.sh +++ b/scripts/check_proxy_state.sh @@ -48,9 +48,11 @@ do_proxy_restart() { done fi done - - cat $PROXY_CONFIG_DIR/new_config >> $PROXY_CONFIG_DIR/configs - rm $PROXY_CONFIG_DIR/new_config + # 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 + cat $PROXY_CONFIG_DIR/new_config >> $PROXY_CONFIG_DIR/config; + rm $PROXY_CONFIG_DIR/new_config; + fi } check_domain() {