forked from qo-op/G1BILLET
astro TW patch
This commit is contained in:
parent
d2d7f568a1
commit
11dc60cced
@ -47,11 +47,18 @@ do
|
|||||||
# CREATION FICHIER IMAGE BILLET
|
# CREATION FICHIER IMAGE BILLET
|
||||||
$(${MY_PATH}/MAKE_G1BILLET.sh "${NUMBER}" "${SECRET}" "${MONTANT}" "${BILLETPUBKEY}" "${UNIQID}" "${STYLE}")
|
$(${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
|
done
|
||||||
|
|
||||||
if [[ "${STYLE}" == "ticket" || "${STYLE}" == "xbian" || "${STYLE}" == "astro" ]]
|
if [[ "${STYLE}" == "ticket" || "${STYLE}" == "xbian" || "${STYLE}" == "astro" ]]
|
||||||
then
|
then
|
||||||
cp /tmp/g1billet/${UNIQID}/*.jpg /tmp/g1billet/${UNIQID}.jpg
|
cp /tmp/g1billet/${UNIQID}/*.jpg /tmp/g1billet/${UNIQID}.jpg
|
||||||
|
|
||||||
# CLEANING TEMP FILES
|
# CLEANING TEMP FILES
|
||||||
rm -Rf /tmp/g1billet/${UNIQID}
|
rm -Rf /tmp/g1billet/${UNIQID}
|
||||||
# ALLOWS ANY USER TO DELETE
|
# ALLOWS ANY USER TO DELETE
|
||||||
|
Loading…
Reference in New Issue
Block a user