FILE_NAME extract from 1st IPNS import

This commit is contained in:
qo-op 2021-03-02 13:59:55 +01:00
parent 8608a14f18
commit 725ed801fb
1 changed files with 2 additions and 2 deletions

View File

@ -51,11 +51,11 @@ for id in $(ls ~/.zen/KEY/); # Alternative search
do
count=$((count+1))
IPNSLINK=$(ipfs key list -l | grep ${id} | cut -d ' ' -f 1)
FILE_NAME=$(cat ~/.zen/KEY/${id}/${G1PUB}/.ipfs.filename)
### IPNS LINK CAN EVOLVE (REFRESH EVERY 12 H TO MAINTAIN ALIVE IN THE SWARM)
echo "<meta http-equiv=\"Refresh\" content=\"10;URL=https://aries.copylaradio.com/ipns/$IPNSLINK/${G1PUB}/\">
<h1><a href='https://astroport.com'>ASTROPORT</a>/KODI</h1>
Pour consulter ce fichier, rejoignez notre video-club et devenons amis...<br><br>
Pour consulter $FILE_NAME, rejoignez notre video-club et devenons amis...<br><br>
Installez <a href='https://copylaradio.com'>astrXbian</a><br>
<br><a href=\"https://www.gchange.fr/#/app/user/${G1PUB}/\"><img width=40 src=\"https://aries.copylaradio.com/ipns/${IPFSNODEID}/.${IPFSNODEID}/G1SSB/_g1.gchange_avatar.png\"></a>" > ~/.zen/KEY/${id}/index.html