forked from axiom-team/astrXbian
IPFS add delayed in ~/astroport/Add_${MEDIAKEY}_script.sh
This commit is contained in:
parent
1b91bab056
commit
4e1c0c6cf5
|
@ -540,8 +540,12 @@ echo "MEDIAKEY=${MEDIAKEY}
|
|||
~/.zen/astrXbian/zen/new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${MEDIAID}/\" \"${FILE_NAME}\"
|
||||
rm -f /tmp/\${MEDIAKEY}.pass
|
||||
rm -f /tmp/\${MEDIAKEY}.dunikey ## REMOVE KEYS
|
||||
rm ~/astroport/nf_$timestamp_cmd.sh
|
||||
" > ~/astroport/nf_$timestamp_cmd.sh
|
||||
rm ~/astroport/Add_${MEDIAKEY}_script.sh
|
||||
" > ~/astroport/Add_${MEDIAKEY}_script.sh
|
||||
|
||||
chmod +x ~/astroport/Add_${MEDIAKEY}_script.sh
|
||||
|
||||
## DELAYED IPFS ADD TO ASTROPORT ... COULD BE MANAGED BY CRON
|
||||
|
||||
# ~/.zen/astrXbian/zen/new_file_in_astroport.sh "$HOME/astroport/${CAT}/${MEDIAID}/" "${FILE_NAME}" > /tmp/${MEDIAKEY}.log 2>&1
|
||||
# [ ! $? == 0 ] && zenity --warning --width 300 --text "Désolé une erreur est survenue... Signalez ce log /tmp/${MEDIAKEY}.log sur https://git.p2p.legal/axiom-team/astrXbian" && exit 1
|
||||
|
@ -580,6 +584,6 @@ cat /tmp/${MEDIAKEY}.log
|
|||
|
||||
|
||||
if [ ! $2 ]; then
|
||||
[ $? == 0 ] && zenity --warning --width 300 --text "OK! ${MEDIAKEY} transféré ($FILE_SIZE) sur Astroport" && exit 0 \
|
||||
|| zenity --warning --width 300 --text "Désolé une erreur est survenue..." && exit 1
|
||||
[ $? == 0 ] && zenity --warning --width 300 --text "OK! script de transfert ~/astroport/Add_${MEDIAKEY}_script.sh créé. Lancez le pour terminer l'ajout à Astroport" && exit 0 \
|
||||
|| zenity --warning --width 300 --text "Désolé une erreur est survenue... /tmp/${MEDIAKEY}.log" && exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue