WHO is IPFSNODEID

This commit is contained in:
fred 2022-04-13 20:40:34 +02:00
parent 38396c89ef
commit c41f3b2db7
2 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@ TS=$(date -u +%s%N | cut -b1-13)
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || echo " warning ipfs daemon not running"
isLAN=$(hostname -I | awk '{print $1}' | head -n 1 | cut -f3 -d '/' | grep -E "(^127\.)|(^192\.168\.)|(^fd42\:)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/")
IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID)
IPFSNGW="https://tube.copylaradio.com"
IPFSNGW="http://127.0.0.1:8080"
@ -321,7 +322,7 @@ echo "##########################################################################
cp ${MY_PATH}/templates/crowbunkerbox.png ~/.zen/bunkerbox/homepage/
sed -i "s~_IPNSL_~$IPNSL~g" ~/.zen/bunkerbox/homepage/index.html
sed -i "s~_VUID_~$INDEX/$VUID~g" ~/.zen/bunkerbox/homepage/index.html
sed -i "s/_DATE_/$(date -u "+%Y-%m-%d#%H:%M:%S")/g " ~/.zen/bunkerbox/homepage/index.html
sed -i "s/_WHO_/$(date -u "+%Y-%m-%d#%H:%M:%S")@$IPFSNODEID/g " ~/.zen/bunkerbox/homepage/index.html
sed -i "s~_TITLE_~$TITLE~g" ~/.zen/bunkerbox/homepage/index.html
cp ~/.zen/bunkerbox/history.json ~/.zen/bunkerbox/homepage/history.json

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>[BunkerBOX] Home _DATE_</title>
<title>[BunkerBOX] Home _WHO_</title>
<link rel="icon" type="image/png" href="styles/logo.png" />
<link rel="stylesheet" href="styles/decoration.css" type="text/css" />
<link rel="stylesheet" href="styles/layout.css" type="text/css" />