Test for FQDN in <replaceable> tags, instead of HOSTNAME, for the full
name of the host. Adapted only to LFS-20170310 and up.
This commit is contained in:
parent
7e5ff87dd2
commit
e43d0d0edb
1 changed files with 8 additions and 3 deletions
11
LFS/lfs.xsl
11
LFS/lfs.xsl
|
@ -609,14 +609,19 @@ unset OLD_PKGDIR
|
||||||
<xsl:when test="contains(string(.),'192.168.1.1')">
|
<xsl:when test="contains(string(.),'192.168.1.1')">
|
||||||
<xsl:value-of select="$ip"/>
|
<xsl:value-of select="$ip"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
<xsl:when test="contains(string(.),'192.168.0.2')">
|
||||||
|
<xsl:value-of select="$ip"/>
|
||||||
|
</xsl:when>
|
||||||
|
<!-- Only adapted to LFS-20170310 and later -->
|
||||||
<xsl:when test="contains(string(.),'HOSTNAME')">
|
<xsl:when test="contains(string(.),'HOSTNAME')">
|
||||||
<xsl:value-of select="$hostname"/>
|
<xsl:value-of select="$hostname"/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:when test="contains(string(.),'FQDN')">
|
||||||
|
<xsl:value-of select="$hostname"/>
|
||||||
<xsl:text>.</xsl:text>
|
<xsl:text>.</xsl:text>
|
||||||
<xsl:value-of select="$domain"/>
|
<xsl:value-of select="$domain"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="contains(string(.),'alias')">
|
<xsl:when test="contains(string(.),'alias')"/>
|
||||||
<xsl:value-of select="$hostname"/>
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:when test="contains(string(.),'<lfs>')">
|
<xsl:when test="contains(string(.),'<lfs>')">
|
||||||
<xsl:value-of select="$hostname"/>
|
<xsl:value-of select="$hostname"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
Reference in a new issue