This commit is contained in:
qo-op 2020-12-08 19:58:24 +01:00
parent 196dab744f
commit 34675fa5c3
1 changed files with 8 additions and 8 deletions

View File

@ -103,21 +103,21 @@ echo "INIT ~/.zen/ipfs/.${IPFSNODEID}"
rm -Rf ~/.zen/ipfs
mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/G1SSB
########################################################################
# Give $(hostname)-$ZUID to your (gchange friends) to add in Vstream Astroport and access your sharings
# IPNS link to "pastebin list" http://localhost:8080/ipns/$IPNSKEY/xbian/$(hostname)-$ZUID
# Give $XZUID to your (gchange friends) to add in Vstream Astroport and access your sharings
# IPNS link to "pastebin list" http://localhost:8080/ipns/$IPNSKEY/xbian/$XZUID
########################################################################
ZUID=$(~/.zen/astroport/zen/tools/diceware.sh 1 | xargs)$(hostname -I | cut -d ' ' -f 1 | cut -d "." -f 4 )
echo "CREATE ~/.zen/ipfs/xbian/$(hostname)-$ZUID"
touch ~/.zen/ipfs/xbian/$(hostname)-$ZUID
XZUID=$(~/.zen/astroport/zen/tools/diceware.sh 1 | xargs)-$(~/.zen/astroport/zen/tools/diceware.sh 1 | xargs)$(hostname -I | cut -d ' ' -f 1 | cut -d "." -f 4 )
echo "CREATE ~/.zen/ipfs/xbian/$XZUID"
touch ~/.zen/ipfs/xbian/$XZUID
# https://github.com/Kodi-vStream/venom-xbmc-addons/wiki/Voir-et-partager-sa-biblioth%C3%A8que-priv%C3%A9e#d%C3%A9clarer-des-films
echo "$(hostname)-$ZUID" > ~/.zen/ipfs/.${IPFSNODEID}/_xbian.zuid
echo "$XZUID" > ~/.zen/ipfs/.${IPFSNODEID}/_xbian.zuid
########################################################################
########################################################################
echo "CREATE gchange+ profile"
########################################################################
cd ~/.zen/astroport/zen/jaklis
./jaklis.py set --name "$(hostname)-$ZUID" --avatar "$HOME/.zen/astroport/logo.png"
./jaklis.py set --name "$XZUID" --avatar "$HOME/.zen/astroport/logo.png"
########################################################################
########################################################################
@ -143,7 +143,7 @@ echo "Configure .kodi/addons/plugin.video.vstream/resources/sites/astroport.py"
cp -f ~/.zen/astroport/.install/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py \
~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py
# CREATE xbian IPNSKEY used to publish ~/.zen/ipfs_swarm/xbian (contains all xbian-ZUID pastebin files)
# 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