mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 22:51:39 +00:00
fix httpdconfname to be the basename
This commit is contained in:
parent
d62ee94019
commit
c456d9543f
1
le.sh
1
le.sh
@ -726,6 +726,7 @@ _apachePath() {
|
|||||||
httpdconfname="$(apachectl -V | grep SERVER_CONFIG_FILE= | cut -d = -f 2 | tr -d '"' )"
|
httpdconfname="$(apachectl -V | grep SERVER_CONFIG_FILE= | cut -d = -f 2 | tr -d '"' )"
|
||||||
if [[ "$httpdconfname" == '/'* ]] ; then
|
if [[ "$httpdconfname" == '/'* ]] ; then
|
||||||
httpdconf="$httpdconfname"
|
httpdconf="$httpdconfname"
|
||||||
|
httpdconfname="$(basename $httpdconfname)"
|
||||||
else
|
else
|
||||||
httpdroot="$(apachectl -V | grep HTTPD_ROOT= | cut -d = -f 2 | tr -d '"' )"
|
httpdroot="$(apachectl -V | grep HTTPD_ROOT= | cut -d = -f 2 | tr -d '"' )"
|
||||||
httpdconf="$httpdroot/$httpdconfname"
|
httpdconf="$httpdroot/$httpdconfname"
|
||||||
|
Loading…
Reference in New Issue
Block a user