This commit is contained in:
qo-op 2021-03-18 01:18:24 +01:00
parent 8b0edcf260
commit bc5e553822
2 changed files with 9 additions and 7 deletions

0
install_www.sh Normal file → Executable file
View File

View File

@ -106,14 +106,16 @@ done
########################################################################
# TODO PUBLISH tiddlywiki WALL OF FRIENDS
########################################################################
# for wiki in $(ls ~/.zen/ipfs_swarm/.12D*/index.html 2>/dev/null); do
for wiki in $(ls ~/.zen/ipfs_swarm/.12D*/index.html 2>/dev/null); do
ipfsnodeid=$(echo $wiki | cut -d '.' -f 3-)
whoisg1=$(~/.zen/astrXbian/zen/tools/ipfs_to_g1.py $ipfsnodeid)
printf "<iframe id="$ipfsnodeid"
title="tiddlywiki $whoisg1"
height="600"
src="http://127.0.0.1:8181/ipns/$ipfsnodeid/.$ipfsnodeid/index.html">
</iframe>"
whoisg1=$(~/.zen/astrXbian/zen/tools/ipfs_to_g1.py $ipfsnodeid)
echo"<html><body>" > ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/index.html
echo "<iframe id=\"$ipfsnodeid\"
title='tiddlywiki $whoisg1'
height='600'
src=\"http://127.0.0.1:8181/ipns/$ipfsnodeid/.$ipfsnodeid/index.html\">
</iframe>" >> ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/index.html
echo"</body></html>" >> ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/index.html
done
########################################################################