From 4567ea327c84bbf3bcbfcead09d23cfb22770ef2 Mon Sep 17 00:00:00 2001 From: qo-op Date: Wed, 17 Feb 2021 03:54:23 +0100 Subject: [PATCH] IPNS index.html Redirect to ipfs streaming link (could be contract !!) --- zen/new_file_in_astroport.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zen/new_file_in_astroport.sh b/zen/new_file_in_astroport.sh index 945a711..cb50432 100755 --- a/zen/new_file_in_astroport.sh +++ b/zen/new_file_in_astroport.sh @@ -100,10 +100,10 @@ if [[ $KEY ]]; then echo "$KEYFILE" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/$type_$TMDB/.ipns.key.keystore_filename echo "$G1PUB" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/$type_$TMDB/.g1_creator touch ~/.zen/ipfs/.${IPFSNODEID}/KEY/$type_$TMDB/.zen - echo "" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/$type_$TMDB/ipns.html +# echo "" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/$type_$TMDB/ipns.html $MY_PATH/jaklis/lib/natools.py encrypt -k $G1PUB -i ~/.ipfs/keystore/$KEYFILE -o ~/.zen/ipfs/.${IPFSNODEID}/KEY/$type_$TMDB/.ipns.key.encrypt.natools fi - +# IPNS index.html Redirect to ipfs streaming link (could be contract !!) echo "" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/$type_$TMDB/index.html NEWIPFS=$(ipfs add -rHq ~/.zen/ipfs/.${IPFSNODEID}/KEY/$type_$TMDB | tail -n 1 ) ipfs name publish --key="$type_$TMDB" $NEWIPFS