fix httpdconfname to be the basename

This commit is contained in:
neil committed 2016-04-05 19:10:56 +08:00
1 parent d62ee94019
commit c456d9543f
1 file changed
+1
+1
View File
@@ -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"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.