astro TW patch

This commit is contained in:
fred 2022-11-24 22:45:03 +01:00
parent d2d7f568a1
commit 11dc60cced
1 changed files with 7 additions and 0 deletions

View File

@ -47,11 +47,18 @@ do
# CREATION FICHIER IMAGE BILLET
$(${MY_PATH}/MAKE_G1BILLET.sh "${NUMBER}" "${SECRET}" "${MONTANT}" "${BILLETPUBKEY}" "${UNIQID}" "${STYLE}")
[ "$STYLE" == "astro" ]] \
&& ${MY_PATH}/keygen -t ipfs -o /tmp/g1billet/${UNIQID}.ipns.key "$NUMBER" "$SECRET" \
&& ASTRONAUTENS=$(ipfs key import ${UNIQID} -f pem-pkcs8-cleartext /tmp/g1billet/${UNIQID}.ipns.key) \
&& curl -s "https://astroport.copylaradio.com/?salt=$NUMBER$pepper=$SECRET&g1pub=on&email=$EMAIL" \
&& echo "TW : /ipns/${ASTRONAUTENS}"
done
if [[ "${STYLE}" == "ticket" || "${STYLE}" == "xbian" || "${STYLE}" == "astro" ]]
then
cp /tmp/g1billet/${UNIQID}/*.jpg /tmp/g1billet/${UNIQID}.jpg
# CLEANING TEMP FILES
rm -Rf /tmp/g1billet/${UNIQID}
# ALLOWS ANY USER TO DELETE