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