IPNS key xbian stored in ~/.bashrc (kept, but not used)

This commit is contained in:
qo-op 2020-12-17 14:06:11 +01:00
parent 307a19a2e8
commit 4e927b4033
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,6 @@
# Add $YOU $IPFSNODEID $G1PUB to ~/.bashrc
source ~/.bashrc
newYOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || er+=" ipfs daemon not running"
newIPFSNODEID=$(ipfs id -f='<id>\n') || er+=" ipfs id problem"
@ -27,6 +26,7 @@ else
echo "YOU=$newYOU" >> ~/.bashrc
echo "G1PUB=$newG1PUB" >> ~/.bashrc
echo "IPFSNODEID=$newIPFSNODEID" >> ~/.bashrc
echo "IPNSKEY=_IPNSKEY_" >> ~/.bashrc
fi
source ~/.bashrc

View File

@ -161,7 +161,7 @@ cp -f ~/.zen/astrXbian/.install/.kodi/addons/plugin.video.vstream/resources/site
# CREATE xbian IPNSKEY used to publish ~/.zen/ipfs_swarm/xbian (contains all XZUID pastebin files)
ipfs key rm xbian
IPNSKEY=$(ipfs key gen xbian)
sed -i "s/_IPNSKEY_/$IPNSKEY/g" ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py
sed -i "s/_IPNSKEY_/$IPNSKEY/g" ~/.bashrc.sh
sed -i "s/_PROFIL_/$XZUID/g" ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py
sed -i "s/_LOGIN_/$salt/g" ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py
sed -i "s/_MDP_/$pepper/g" ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py