Changed LOCAL_IP to LOCAL_NAME in nginx config create

This commit is contained in:
2023-01-26 12:28:23 +00:00
parent ed6d539e95
commit 29e637e54f
3 changed files with 12 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ do
elif [[ "${parent}" == "${DOMAIN_DIR}" && "${op}" == "CLOSE_WRITE,CLOSE" || "${op}" == "MOVED_TO" ]]; then
DOMAIN=$(echo $file);
DOMAIN=$(echo $file | jq .DOMAIN);
if [[ "${PROXY_TYPE}" == "haproxy" ]]; then
echo "haproxy config created, changed";
@@ -55,7 +55,7 @@ elif [[ "${parent}" == "${PROXY_CONFIG_DIR}" && "${op}" == "CLOSE_WRITE,CLOSE" ]
fi;
elif [[ "${parent}" == "${DOMAIN_DIR}" && "${op}" == "DELETE" ]] ; then
DOMAIN=$(echo $file);
DOMAIN=$(echo $file | jq .DOMAIN);
echo "domain deleted";
if [[ "${PROXY_TYPE}" == "haproxy" ]]; then