forked from axiom-team/astrXbian
Message de conflit de MEDIAKEY.
This commit is contained in:
parent
14b4b7966a
commit
2907928f2a
@ -90,7 +90,7 @@ esac
|
|||||||
## CHECK if ${INDEXPREFIX}${REFERENCE} MEDIAKEY exists
|
## CHECK if ${INDEXPREFIX}${REFERENCE} MEDIAKEY exists
|
||||||
########################################################################
|
########################################################################
|
||||||
echo "SEARCH for ;$REFERENCE; in ${PREFIX}ASTRXBIAN"
|
echo "SEARCH for ;$REFERENCE; in ${PREFIX}ASTRXBIAN"
|
||||||
isREFERENCEinINDEX=$(grep ";$REFERENCE;" ~/.zen/ipfs*/.12D*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN)
|
isREFERENCEinINDEX=$(grep ";$REFERENCE;" ~/.zen/ipfs_swarm/.12D*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN )
|
||||||
if [[ ${isREFERENCEinINDEX} ]]
|
if [[ ${isREFERENCEinINDEX} ]]
|
||||||
then
|
then
|
||||||
if [[ -d ~/.zen/ipfs/.${IPFSNODEID}/KEY/${INDEXPREFIX}${REFERENCE}/${G1PUB} ]]
|
if [[ -d ~/.zen/ipfs/.${IPFSNODEID}/KEY/${INDEXPREFIX}${REFERENCE}/${G1PUB} ]]
|
||||||
@ -105,8 +105,11 @@ then
|
|||||||
rm ~/.zen/ipfs/.${IPFSNODEID}/KEY/${INDEXPREFIX}${REFERENCE}/${G1PUB}/.gchange.ad
|
rm ~/.zen/ipfs/.${IPFSNODEID}/KEY/${INDEXPREFIX}${REFERENCE}/${G1PUB}/.gchange.ad
|
||||||
else
|
else
|
||||||
er="$er | FILE IS ALREADY EXISTING FROM ANOTHER FRIEND" && echo "$er"
|
er="$er | FILE IS ALREADY EXISTING FROM ANOTHER FRIEND" && echo "$er"
|
||||||
echo ${isREFERENCEinINDEX} | head -n 1 | cut -d ":" -f 2-
|
# SEND messages to warn about need to Unify MEDIAKEY IPNS KEY
|
||||||
# I could send message to my friend, PIN, exchange contract... WHAT IS BEST TODO ??
|
ipfsnodeid=$(echo ${isREFERENCEinINDEX} | tail -n 1 | cut -d '.' -f 3- | cut -d '/' -f 1)
|
||||||
|
destg1=$(~/.zen/astrXbian/zen/tools/ipfs_to_g1.py $ipfsnodeid)
|
||||||
|
[[ "$IPFSNODEID" != "$ipfsnodeid" ]] && ~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey send -d $destg1 -t "BLOCKCHAIN FUSION ${INDEXPREFIX}${REFERENCE}" -m "Conflit de MEDIAKEY. Choisir quelle clef IPNS conserver..."
|
||||||
|
#
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# DELETING OLD LINE FROM INDEX
|
# DELETING OLD LINE FROM INDEX
|
||||||
|
Loading…
Reference in New Issue
Block a user