diff --git a/scripts/config_haproxy_create.sh b/scripts/config_haproxy_create.sh index 433abec..4dd0cd9 100755 --- a/scripts/config_haproxy_create.sh +++ b/scripts/config_haproxy_create.sh @@ -2,6 +2,7 @@ # Initial parameters DATE=`date +%F-%H-%M-%S` + DOMAIN=$1 # Set env variables diff --git a/scripts/scheduler.sh b/scripts/scheduler.sh index 1c50f8c..1ca5aac 100755 --- a/scripts/scheduler.sh +++ b/scripts/scheduler.sh @@ -41,7 +41,7 @@ do if [[ "${PROXY_TYPE}" == "haproxy" ]]; then echo "haproxy config created, changed"; - /scripts/config_haproxy_create.sh; + /scripts/config_haproxy_create.sh $DOMAIN; if [ -f "$PROXY_CONFIG_DIR/new_config" ] ; then /scripts/check_proxy_state.sh "$DOMAIN";