forked from axiom-team/astrXbian
IPNS key xbian stored in ~/.bashrc (kept, but not used)
This commit is contained in:
parent
307a19a2e8
commit
4e927b4033
|
@ -8,7 +8,6 @@
|
||||||
# Add $YOU $IPFSNODEID $G1PUB to ~/.bashrc
|
# Add $YOU $IPFSNODEID $G1PUB to ~/.bashrc
|
||||||
|
|
||||||
source ~/.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"
|
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"
|
newIPFSNODEID=$(ipfs id -f='<id>\n') || er+=" ipfs id problem"
|
||||||
|
@ -27,6 +26,7 @@ else
|
||||||
echo "YOU=$newYOU" >> ~/.bashrc
|
echo "YOU=$newYOU" >> ~/.bashrc
|
||||||
echo "G1PUB=$newG1PUB" >> ~/.bashrc
|
echo "G1PUB=$newG1PUB" >> ~/.bashrc
|
||||||
echo "IPFSNODEID=$newIPFSNODEID" >> ~/.bashrc
|
echo "IPFSNODEID=$newIPFSNODEID" >> ~/.bashrc
|
||||||
|
echo "IPNSKEY=_IPNSKEY_" >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
source ~/.bashrc
|
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)
|
# CREATE xbian IPNSKEY used to publish ~/.zen/ipfs_swarm/xbian (contains all XZUID pastebin files)
|
||||||
ipfs key rm xbian
|
ipfs key rm xbian
|
||||||
IPNSKEY=$(ipfs key gen 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/_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/_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
|
sed -i "s/_MDP_/$pepper/g" ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py
|
||||||
|
|
Loading…
Reference in New Issue