From c456d9543f31487531a8a1fa1f69b721dddad9b4 Mon Sep 17 00:00:00 2001 From: neil Date: Tue, 5 Apr 2016 19:10:56 +0800 Subject: [PATCH] fix httpdconfname to be the basename --- le.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/le.sh b/le.sh index b3ed7cab..7544f7f3 100755 --- a/le.sh +++ b/le.sh @@ -726,6 +726,7 @@ _apachePath() { httpdconfname="$(apachectl -V | grep SERVER_CONFIG_FILE= | cut -d = -f 2 | tr -d '"' )" if [[ "$httpdconfname" == '/'* ]] ; then httpdconf="$httpdconfname" + httpdconfname="$(basename $httpdconfname)" else httpdroot="$(apachectl -V | grep HTTPD_ROOT= | cut -d = -f 2 | tr -d '"' )" httpdconf="$httpdroot/$httpdconfname"