From 552e4b711d9005f289998dfbc0891419dad81f9a Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 15 Mar 2021 18:52:24 +0100 Subject: [PATCH] xbian IPNS key creation --- ISOconfig.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ISOconfig.sh b/ISOconfig.sh index 757b126..29b5ae8 100755 --- a/ISOconfig.sh +++ b/ISOconfig.sh @@ -165,8 +165,8 @@ cp -Rf ~/.zen/astrXbian/.install/.kodi ~/ echo "Configure .kodi/addons/plugin.video.vstream/resources/sites/astroport.py" # CREATE xbian IPNSKEY used to publish ~/.zen/ipfs_swarm/xbian (contains all XZUID pastebin files) -ipfs key rm xbian -IPNSKEY=$(ipfs key gen xbian) +IPNSKEY=$(ipfs key list -l | grep xbian | cut -d ' ' -f 1) +[[ ! $IPNSKEY ]] && IPNSKEY=$(ipfs key gen xbian) sed -i "s/_IPNSKEY_/$IPNSKEY/g" ~/.bashrc 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