forked from qo-op/G1BILLET
astro version
This commit is contained in:
parent
8e19ac39bc
commit
d87ca3e66d
@ -21,11 +21,9 @@ STYLE="$3"
|
|||||||
|
|
||||||
## CHECK STYLE IS EMAIL
|
## CHECK STYLE IS EMAIL
|
||||||
if [[ "${STYLE}" =~ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ]]; then
|
if [[ "${STYLE}" =~ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ]]; then
|
||||||
echo "PLAYER : $STYLE"
|
# echo "PLAYER : $STYLE"
|
||||||
EMAIL=${STYLE}
|
EMAIL=${STYLE}
|
||||||
STYLE="astro"
|
STYLE="astro"
|
||||||
else
|
|
||||||
echo "STYLE=${STYLE}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## PLANCHE DE 6 BILLETS PAR DEFAUT
|
## PLANCHE DE 6 BILLETS PAR DEFAUT
|
||||||
@ -59,8 +57,9 @@ do
|
|||||||
[[ "$STYLE" == "astro" ]] \
|
[[ "$STYLE" == "astro" ]] \
|
||||||
&& ${MY_PATH}/keygen -t ipfs -o /tmp/g1billet/${UNIQID}.ipns.key "$NUMBER" "$SECRET" \
|
&& ${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) \
|
&& ASTRONAUTENS=$(ipfs key import ${UNIQID} -f pem-pkcs8-cleartext /tmp/g1billet/${UNIQID}.ipns.key) \
|
||||||
&& ipfs key rm ${UNIQID} && rm /tmp/g1billet/${UNIQID}.ipns.key \
|
&& rm -f /tmp/g1billet/${UNIQID}.ipns.key \
|
||||||
&& [[ $EMAIL ]] && curl -s "https://astroport.copylaradio.com/?salt=$NUMBER$pepper=$SECRET&g1pub=on&email=$EMAIL" \
|
&& ipfs key rm ${UNIQID} > /dev/null &2>1 \
|
||||||
|
&& [[ $EMAIL ]] && curl -s "https://astroport.copylaradio.com/?salt=$NUMBER$pepper=$SECRET&g1pub=on&email=$EMAIL"
|
||||||
|
|
||||||
# CREATION FICHIER IMAGE BILLET
|
# CREATION FICHIER IMAGE BILLET
|
||||||
$(${MY_PATH}/MAKE_G1BILLET.sh "${NUMBER}" "${SECRET}" "${MONTANT}" "${BILLETPUBKEY}" "${UNIQID}" "${STYLE}" "${ASTRONAUTENS}")
|
$(${MY_PATH}/MAKE_G1BILLET.sh "${NUMBER}" "${SECRET}" "${MONTANT}" "${BILLETPUBKEY}" "${UNIQID}" "${STYLE}" "${ASTRONAUTENS}")
|
||||||
|
Loading…
Reference in New Issue
Block a user