diff --git a/inc/sites.inc b/inc/sites.inc index 977c4d8e..14f4dc80 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -225,7 +225,7 @@ NEWSITE(){ exit 0 elif [[ ${overwrite} =~ ^[Yy]$ ]]; then rm -f ${NM_NGINXPATH}/sites-enabled/${DEL_SITE}* >/dev/null 2>&1 - [ "${NM_AUTHELIA_IP}" != "" ] && ssh root@${NM_AUTHELIA_IP} sed -i "/${DEL_SITE}/d" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml + [ "${NM_AUTHELIA_IP}" != "" ] && ssh root@${NM_AUTHELIA_IP} sed -i "/${MAIN_SITE}/d" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml else exit 0 fi