Merge pull request #218 from GuillaumeFromage/stable-3.1

Corriger le répertoire de validation des templates avant effacement
Use value set in local.sh and not an hardcoded path
This commit is contained in:
camlafit 2018-01-23 16:13:52 +01:00 committed by GitHub
commit 64bcb12f8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ host_delete() {
fi
# Fix of a longstanding BUG: we only DELETE the vhost file if the type is a vhost one !
if [ -f "/etc/alternc/templates/${VTYPE}.conf" ]
if [ -f "${TEMPLATE_DIR}/${VTYPE}.conf" ]
then
local FENABLED=$(host_conffile "$FQDN")
local FDISABLED="$FENABLED-disabled"