fix mydomainname: use domainname before hostname -d

This commit is contained in:
aynic.os 2023-01-01 11:55:08 +00:00
parent 87a41cf103
commit 165ccf4870
2 changed files with 16 additions and 19 deletions

View File

@ -73,27 +73,23 @@ header {
<article> <article>
<div class="row justify-center"> <div class="row justify-center">
<h1 class="video-title"> <h1 class="video-title">
<center><a href="https://twitch.com/zicmama" target="twitch">COCODING TWITCH TW</a><br></center><br> <center>
<a href="https://astroport.com">Astroport.ONE</a> <a href="https://twitch.com/zicmama" target="twitch">COCODING TWITCH TW</a><br><br>
<a href="https://git.p2p.legal/qo-op/Astroport.ONE" target="code">- ♥BOX Edition - </a> <a href="https://astroport.com">Astroport.ONE</a>
<a href="https://olympe.network">Olympe.Network</a><br> <a href="https://opencollective.com/monnaie-libre/projects/coeurbox" target="funding">- ♥BOX Edition - </a>
<a target="code" href="http://opencollective.com/monnaie-libre/projects/bunker-box">Recopiez les vidéos que vous aimez dans les capsules de votre TW! <a href="https://olympe.network">Olympe.Network</a><br>
<br>Une fois votre G1Visa obtenu, direction <a target="gchange" href="https://gchange.fr">https://gchange.fr</a> !</a> </center>
<a target="gchange" href="https://gchange.fr">Recopiez les vidéos que vous aimez dans les capsules de votre TW!
<br>Une fois votre G1Visa obtenu, direction https://gchange.fr !</a>
</h1> </h1>
</div> </div>
</article> </article>
<article> <article>
<div class="row justify-center"> <div class="row justify-center">
</div> <ul>
</article> <li>Devenez INTERNET - Installez IPFS - Ajoutez <a href="http://127.0.0.1:8080/ipns/docs.ipfs.tech/install/ipfs-companion/" target="doc"><b>ipfs-companion</b></a> à votre navigateur </li>
<article> </ul>
<div class="row justify-center">
<p><h3>Devenez INTERNET - Installez IPFS - Activez >>> <a href="https://git.p2p.legal/qo-op/Astroport.ONE" target="code"><b>Astroport.ONE</b></a> <<< </h3>
<ul>
<li>Ajoutez <a href="http://127.0.0.1:8080/ipns/docs.ipfs.tech/install/ipfs-companion/" target="code"><b>ipfs-companion</b></a> à votre navigateur</li>
</ul>
</p>
</div> </div>
</article> </article>
BECOME ASTROŊAUTE BECOME ASTROŊAUTE
@ -113,8 +109,9 @@ Need help? Contact support@qo-op.com
Astroport' operates a 100% blockchain digitalization. Astroport' operates a 100% blockchain digitalization.
Copy, store, share, broadcast your multimedia and json channels in IPFS, between friends! Copy, store, share, broadcast your multimedia and json channels in IPFS, between friends!
Take possession of your TW. Make freedom of expression uncensurable, unstoppable. Take possession of your TW. Make freedom of expression uncensurable, unstoppable.
<br/><center><a href="https://git.p2p.legal/qo-op/Astroport.ONE">
>>> Let's reboot the INTERNET - Install IPFS - Activate Astroport.ONE <<< >>> Let's reboot the INTERNET - Install IPFS - Activate Astroport.ONE <<<
</a></center><br/>
<center> <center>
<h6> <h6>
<a href="https://madeinzion.org">Made In Zion funded project _\/_ </a> powered by <a href="https://astroport.com"><span>"</span>Astroport<span>"</span></a> <a href="https://madeinzion.org">Made In Zion funded project _\/_ </a> powered by <a href="https://astroport.com"><span>"</span>Astroport<span>"</span></a>

View File

@ -55,7 +55,7 @@ myDate() {
} }
myDomainName() { myDomainName() {
local myDomainName=$(hostname -d 2>/dev/null) && [ -z "$myDomainName" ] && myDomainName=$(domainname 2>/dev/null) && [ "$myDomainName" = "(none)" ] && myDomainName="localhost" local myDomainName=$(domainname 2>/dev/null) && [ "$myDomainName" = "(none)" ] && myDomainName=$(hostname -d 2>/dev/null) && [ -z "$myDomainName" ] && myDomainName="localhost"
[ -n "$myDomainName" ] && echo "$myDomainName" [ -n "$myDomainName" ] && echo "$myDomainName"
} }
@ -95,7 +95,7 @@ myHome() {
myHostName() { myHostName() {
local myHostName=$(hostname |sed 's/\.'"$(myDomainName)"'$//') local myHostName=$(hostname |sed 's/\.'"$(myDomainName)"'$//')
[ -n "$(myDomainName)" ] && myHostName="${myHostName}.$(myDomainName)" || myDomainName=${myHostName#*.} [ -n "$(myDomainName)" ] && myHostName="${myHostName}.$(myDomainName)"
[ -n "$myHostName" ] && echo "$myHostName" [ -n "$myHostName" ] && echo "$myHostName"
} }