forked from axiom-team/astrXbian
IPNS key xbian stored in ~/.bashrc (kept, but not used)
This commit is contained in:
parent
307a19a2e8
commit
4e927b4033
|
@ -9,7 +9,6 @@
|
|||
|
||||
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"
|
||||
[[ -f ~/.zen/secret.dunikey ]] && newG1PUB=$(cat ~/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) || er+=" ~/.zen/secret.dunikey missing cannot find G1PUB"
|
||||
|
@ -27,6 +26,7 @@ else
|
|||
echo "YOU=$newYOU" >> ~/.bashrc
|
||||
echo "G1PUB=$newG1PUB" >> ~/.bashrc
|
||||
echo "IPFSNODEID=$newIPFSNODEID" >> ~/.bashrc
|
||||
echo "IPNSKEY=_IPNSKEY_" >> ~/.bashrc
|
||||
fi
|
||||
source ~/.bashrc
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue