1
0
mirror of https://git.FreeBSD.org/doc.git synced 2026-06-02 19:35:07 +00:00

hugo server: Fix bind and hostname parameters

When BIND variable is defined, baseURL/.HOST should not be set to
localhost by default.

Reported by:	imp
Reviewed by:	imp, ceri, blackend
Differential Revision: https://reviews.freebsd.org/D30656
This commit is contained in:
Danilo G. Baio
2021-06-05 17:25:46 -03:00
parent c07f22064d
commit c9c4fc4628
2 changed files with 12 additions and 4 deletions
+6 -2
View File
@@ -39,9 +39,13 @@ RUN_DEPENDS= ${PYTHON_CMD} \
${LOCALBASE}/bin/rougify
.ifndef HOSTNAME
.HOST+=localhost
. ifdef BIND
.HOST=$(BIND)
. else
.HOST=localhost
. endif
.else
.HOST+=$(HOSTNAME)
.HOST=$(HOSTNAME)
.endif
.ORDER: all run
+6 -2
View File
@@ -22,9 +22,13 @@ RUBYLIB = ../shared/lib
.export RUBYLIB
.ifndef HOSTNAME
.HOST+=localhost
. ifdef BIND
.HOST=$(BIND)
. else
.HOST=localhost
. endif
.else
.HOST+=$(HOSTNAME)
.HOST=$(HOSTNAME)
.endif
.ORDER: all run