From 4e927b403315fd71d95ad70a7fd374257a854a2c Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 17 Dec 2020 14:06:11 +0100 Subject: [PATCH] IPNS key xbian stored in ~/.bashrc (kept, but not used) --- .install/update_bashrc.sh | 2 +- ISOconfig.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.install/update_bashrc.sh b/.install/update_bashrc.sh index 6d4744bfb..1d54c665b 100755 --- a/.install/update_bashrc.sh +++ b/.install/update_bashrc.sh @@ -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='\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 diff --git a/ISOconfig.sh b/ISOconfig.sh index c4f53dc1d..438ad354e 100755 --- a/ISOconfig.sh +++ b/ISOconfig.sh @@ -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