Commit c456d954 authored by neil's avatar neil
Browse files

fix httpdconfname to be the basename

parent d62ee940
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment