forked from axiom-team/astrXbian
With second parameter ~/.zen/astrXbian/actions/view_counter_increment_or_allow.sh $MEDIAKEYIPNS $G1PUB activates API access
This commit is contained in:
parent
71b8b6bbc6
commit
9d525d5119
|
@ -30,7 +30,7 @@ MEDIAKEY=$(cat ./*/.id | tail -n 1)
|
||||||
if [[ ! $(ipfs key list -l | grep $MEDIAKEY) ]]; then
|
if [[ ! $(ipfs key list -l | grep $MEDIAKEY) ]]; then
|
||||||
## SEND A MESSAGE ASKING FOR THE KEY (I am a bootstrap or http gateway)
|
## SEND A MESSAGE ASKING FOR THE KEY (I am a bootstrap or http gateway)
|
||||||
for sharedowners in $(ls -d */ | cut -d '/' -f 1); do
|
for sharedowners in $(ls -d */ | cut -d '/' -f 1); do
|
||||||
~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey -n "https://data.gchange.fr" send -d "$sharedowners" -t "MEDIAKEY ask for sharing contract" -m "I was wishing to increment $MEDIAKEY views, but not in your contracts yet. Please send me your ./ipfs/keystore/$MEDIAKEYIPNS to activate."
|
~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey -n "https://data.gchange.fr" send -d "$sharedowners" -t "MEDIAKEY ask for sharing contract" -m "I was wishing to increment $MEDIAKEY views, but not in your contracts yet. Please run ~/.zen/astrXbian/actions/view_counter_increment_or_allow.sh $MEDIAKEYIPNS $G1PUB to activate."
|
||||||
done
|
done
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue