From 2d0847346981825dd08d5ebea53a9c845ecac6eb Mon Sep 17 00:00:00 2001 From: Doug Le Tough Date: Sat, 22 Jul 2017 09:49:40 +0200 Subject: [PATCH] "MaJ expl_create_vhost.sh" --- bin/expl_create_vhost.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/expl_create_vhost.sh b/bin/expl_create_vhost.sh index a1af500..c0bb46a 100755 --- a/bin/expl_create_vhost.sh +++ b/bin/expl_create_vhost.sh @@ -87,7 +87,7 @@ fi source ${NC_EXPL_CFG}/init.conf IP_ADDR=$(host ${backend_host} | rev | cut -d' ' -f1 | rev) -IS_PRESENT=$(grep -E ^${DOMAIN}$ ${DEHYDRATED_DOMAIN_LIST} | wc -l) +IS_PRESENT=$(grep -E ^${backend_host}$ ${DEHYDRATED_DOMAIN_LIST} | wc -l) REMOTE_HTTP_PATH=${backend_host}:${HTTPD_PATH} REPLACE_DOMAIN="s/SITE_NAME/${domain}/g" REPLACE_HOST="s/SITE_HOST/${backend_host}/g" @@ -193,7 +193,7 @@ function create_backend_conf fct_erreur 2 fi fct_message "Installation de la configuration du backend sur ${backend_host}" -color jaune - scp ${NC_EXPL_TMP}/${domain}.conf_${SH_SESSION_ID}.tmp ${backend_host}:/tmp/${domain}.conf + scp ${NC_EXPL_TMP}/${domain}.conf_${SH_SESSION_ID}.tmp ${backend_host}:/tmp/${domain}.conf RET_VAL=$? if [ ! ${RET_VAL} -eq 0 ]; then ERROR="Erreur lors de l'installation de la configuration du backend (1)"