This commit is contained in:
qo-op 2021-04-01 03:20:32 +02:00
parent 425bd310bc
commit fdab41fb21
2 changed files with 3 additions and 1 deletions

View File

@ -300,6 +300,8 @@ esac
########################################################################
# ADD $FILE to IPFS / ASTROPORT / KODI
echo "ADDING new_file_in_astroport.sh $HOME/astroport/${CAT}/${TMDB}/${FILE_NAME}"
cat ~/astroport/${CAT}/${TMDB}/ajouter_video.txt
########################################################################
~/.zen/astrXbian/zen/new_file_in_astroport.sh "$HOME/astroport/${CAT}/${TMDB}/" "${FILE_NAME}" > /tmp/${CAT}_${TMDB}.log 2>&1
########################################################################

View File

@ -139,7 +139,7 @@ URLENCODE_FILE_NAME=$(echo ${file} | jq -Rr @uri)
## CREATE NEW ipns KEY : ${INDEXPREFIX}${REFERENCE}
########################################################################
########################################################################
[[ ! -d ~/.zen/ipfs/.${IPFSNODEID}/KEY/${INDEXPREFIX}${REFERENCE}/${G1PUB} ]] && mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/KEY/${INDEXPREFIX}${REFERENCE}/${G1PUB} && KEY=$(ipfs key gen "${INDEXPREFIX}${REFERENCE}") && KEYFILE=$(ls -t ~/.ipfs/keystore/ | head -n 1)
[[ ! $(ipfs key list | grep "${INDEXPREFIX}${REFERENCE}") ]] && mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/KEY/${INDEXPREFIX}${REFERENCE}/${G1PUB} && KEY=$(ipfs key gen "${INDEXPREFIX}${REFERENCE}") && KEYFILE=$(ls -t ~/.ipfs/keystore/ | head -n 1)
## INIT ipns
if [[ $KEY ]]; then
# memorize IPNS key filename for easiest exchange