zim
This commit is contained in:
parent
4435717e5f
commit
0c5ba0af2d
2
12345.sh
2
12345.sh
|
@ -225,7 +225,7 @@ while true; do
|
||||||
ISTHERE=$(ls -t ~/.zen/game/players/.toctoc/*.${G1PUB}.ipns.key 2>/dev/null | tail -n 1)
|
ISTHERE=$(ls -t ~/.zen/game/players/.toctoc/*.${G1PUB}.ipns.key 2>/dev/null | tail -n 1)
|
||||||
TTIME=$(echo $ISTHERE | rev | cut -d '.' -f 4 | cut -d '/' -f 1 | rev)
|
TTIME=$(echo $ISTHERE | rev | cut -d '.' -f 4 | cut -d '/' -f 1 | rev)
|
||||||
if [[ ! $ISTHERE ]]; then
|
if [[ ! $ISTHERE ]]; then
|
||||||
echo "${WHAT} 1ST TOCTOC : ${MOATS}"
|
echo "${APPNAME} 1ST TOCTOC : ${MOATS}"
|
||||||
cp ~/.zen/tmp/coucou/${MOATS}.* ~/.zen/game/players/.toctoc/
|
cp ~/.zen/tmp/coucou/${MOATS}.* ~/.zen/game/players/.toctoc/
|
||||||
else ## KEEP 1ST CONTACT ONLY
|
else ## KEEP 1ST CONTACT ONLY
|
||||||
OLDONE=$(ls -t ~/.zen/tmp/coucou/*.${G1PUB}.ipns.key | tail -n 1)
|
OLDONE=$(ls -t ~/.zen/tmp/coucou/*.${G1PUB}.ipns.key | tail -n 1)
|
||||||
|
|
29
start.sh
29
start.sh
|
@ -86,25 +86,24 @@ echo 'PRESS ENTER... '; read
|
||||||
PLAYER=$fav
|
PLAYER=$fav
|
||||||
|
|
||||||
|
|
||||||
rm -f ~/.zen/game/players/.current
|
|
||||||
ln -s ~/.zen/game/players/$PLAYER ~/.zen/game/players/.current
|
|
||||||
|
|
||||||
pass=$(cat ~/.zen/game/players/.current/.pass 2>/dev/null)
|
pass=$(cat ~/.zen/game/players/.current/.pass 2>/dev/null)
|
||||||
|
|
||||||
########################################## DEVEL
|
########################################## DEVEL
|
||||||
echo "Saisissez votre PASS -- UPGRADE CRYPTO FREELY -- $pass" && read pass
|
echo "Saisissez votre PASS -- UPGRADE CRYPTO FREELY -- $pass" && read PASS
|
||||||
|
|
||||||
## DECODE CURRENT PLAYER CRYPTO
|
## DECODE CURRENT PLAYER CRYPTO
|
||||||
echo "********* DECODAGE SecuredSocketLayer *********"
|
# echo "********* DECODAGE SecuredSocketLayer *********"
|
||||||
rm -f ~/.zen/tmp/${PLAYER}.dunikey 2>/dev/null
|
# rm -f ~/.zen/tmp/${PLAYER}.dunikey 2>/dev/null
|
||||||
openssl enc -aes-256-cbc -d -in "$HOME/.zen/game/players/.current/enc.secret.dunikey" -out "$HOME/.zen/tmp/${PLAYER}.dunikey" -k $pass 2>&1>/dev/null
|
# openssl enc -aes-256-cbc -d -in "$HOME/.zen/game/players/.current/enc.secret.dunikey" -out "$HOME/.zen/tmp/${PLAYER}.dunikey" -k $pass 2>&1>/dev/null
|
||||||
[[ ! $? == 0 ]] && echo "ERROR. MAUVAIS PASS. EXIT" && exit 1
|
[[ $PASS != $pass ]] && echo "ERROR. MAUVAIS PASS. EXIT" && exit 1
|
||||||
|
|
||||||
|
rm -f ~/.zen/game/players/.current
|
||||||
|
ln -s ~/.zen/game/players/$PLAYER ~/.zen/game/players/.current
|
||||||
|
|
||||||
echo "________LOGIN OK____________";
|
echo "________LOGIN OK____________";
|
||||||
echo
|
echo
|
||||||
echo "DECHIFFRAGE CLEFS ASTRONAUTE"
|
echo "DECHIFFRAGE CLEFS ASTRONAUTE"
|
||||||
echo "Votre Pass Astroport.ONE : $(cat ~/.zen/game/players/.current/.pass 2>/dev/null)"
|
echo "Votre Pass Astroport.ONE : $(cat ~/.zen/game/players/$PLAYER/.pass 2>/dev/null)"
|
||||||
G1PUB=$(cat ~/.zen/tmp/${PLAYER}.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
G1PUB=$(cat ~/.zen/game/players/$PLAYER/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
||||||
[ ! ${G1PUB} ] && echo "ERROR. MAUVAIS PASS. EXIT" && exit 1
|
[ ! ${G1PUB} ] && echo "ERROR. MAUVAIS PASS. EXIT" && exit 1
|
||||||
|
|
||||||
echo "Clef Publque Astronaute : $G1PUB"
|
echo "Clef Publque Astronaute : $G1PUB"
|
||||||
|
@ -145,11 +144,13 @@ select fav in "${choices[@]}"; do
|
||||||
ipfs key rm $voeu
|
ipfs key rm $voeu
|
||||||
[[ $voeu != "" ]] && rm -Rf ~/.zen/game/world/$voeu
|
[[ $voeu != "" ]] && rm -Rf ~/.zen/game/world/$voeu
|
||||||
done
|
done
|
||||||
|
echo "REMOVE GCHANGE PROFILE"
|
||||||
|
$MY_PATH/tools/jaklis/jaklis.py -k $HOME/.zen/game/players/$PLAYER/secret.dunikey -n https://data.gchange.fr erase
|
||||||
|
echo "REMOVE CESIUM+"
|
||||||
|
$MY_PATH/tools/jaklis/jaklis.py -k $HOME/.zen/game/players/$PLAYER/secret.dunikey -n https://g1.data.e-is.pro erase
|
||||||
echo "rm -Rf ~/.zen/game/players/$PLAYER"
|
echo "rm -Rf ~/.zen/game/players/$PLAYER"
|
||||||
$MY_PATH/tools/jaklis/jaklis.py -k $HOME/.zen/tmp/${PLAYER}.dunikey -n https://data.gchange.fr erase
|
|
||||||
# ~/.zen/astrXbian/zen/jaklis/jaklis.py -k $HOME/.zen/tmp/${PLAYER}.dunikey -n https://g1.data.e-is.pro erase
|
|
||||||
|
|
||||||
rm -Rf ~/.zen/game/players/$PLAYER
|
rm -Rf ~/.zen/game/players/$PLAYER
|
||||||
|
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
|
@ -44,11 +44,11 @@ html {
|
||||||
<h2>Internet Reboot !<br>Inscrivez-vous<br>
|
<h2>Internet Reboot !<br>Inscrivez-vous<br>
|
||||||
<form id="formlink" action = "http://127.0.0.1:1234" method = "GET" enctype="application/x-www-form-urlencoded">
|
<form id="formlink" action = "http://127.0.0.1:1234" method = "GET" enctype="application/x-www-form-urlencoded">
|
||||||
<br>
|
<br>
|
||||||
<b>Associez 2 phrases clefs et votre adresse email</b></br></br>
|
<b>Activez votre BunkerBOX</b></br></br>
|
||||||
Phrase 1 : <input name=salt value=''></br>
|
Phrase 1 : <input name=salt value=''></br>
|
||||||
Phrase 2 : <input name=pepper value=''></br></br>
|
Phrase 2 : <input name=pepper value=''></br></br>
|
||||||
URL : <input name=g1pub value=''></br>
|
URL : <input name=g1pub value=''></br>
|
||||||
Email -</br><input name=email value=''></br></br>
|
Email : <input name=email value=''></br></br>
|
||||||
<input type='submit' value='(☼‿‿☼)'>
|
<input type='submit' value='(☼‿‿☼)'>
|
||||||
</form>
|
</form>
|
||||||
</h2>
|
</h2>
|
||||||
|
@ -60,7 +60,7 @@ html {
|
||||||
<article>
|
<article>
|
||||||
<div class="row justify-center">
|
<div class="row justify-center">
|
||||||
<h1 class="video-title">
|
<h1 class="video-title">
|
||||||
<a href="https://git.p2p.legal/qo-op/Astroport.ONE" target="code">'ASTROŊAUTE'. Insérez vos clefs. Activez le niveau Ŋ1. Explorez les toiles confiances.</a>. <br>
|
<a href="https://git.p2p.legal/qo-op/Astroport.ONE" target="code">'ASTROŊAUTE' : Astroport.ONE - BunkerBOX edition -</a>. <br>
|
||||||
<a target="code" href="http://opencollective.com/monnaie-libre/projects/bunker-box">Copiez, conservez, partagez, diffusez vos chaines multimédia et json dans IPFS, entre amis!<br>
|
<a target="code" href="http://opencollective.com/monnaie-libre/projects/bunker-box">Copiez, conservez, partagez, diffusez vos chaines multimédia et json dans IPFS, entre amis!<br>
|
||||||
Prenez possession de votre TW. Rendez in-censurable, in-arrêtable la liberté d'expression.</a>
|
Prenez possession de votre TW. Rendez in-censurable, in-arrêtable la liberté d'expression.</a>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
|
@ -54,7 +54,7 @@ if [[ ! -s ~/.zen/game/players/${PLAYER}/ipfs/cesium.json ]]; then
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
echo "${PLAYER} GCHANGE+ PROFILE https://gchange.fr"
|
echo "${PLAYER} GCHANGE+ PROFILE https://gchange.fr"
|
||||||
echo "set -n "${NAME}" -d "${DESCR}" -v "${VILLE}" -a "${ADRESSE}""
|
# echo "set -n "${NAME}" -d "${DESCR}" -v "${VILLE}" -a "${ADRESSE}""
|
||||||
########################################################################
|
########################################################################
|
||||||
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://data.gchange.fr" set -n "${NAME}" -d "${DESCR}" -v "${VILLE}" -a "${ADRESSE}" -s "https://ipfs.copylaradio.com/ipns/$ASTRONAUTENS" #GCHANGE+
|
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://data.gchange.fr" set -n "${NAME}" -d "${DESCR}" -v "${VILLE}" -a "${ADRESSE}" -s "https://ipfs.copylaradio.com/ipns/$ASTRONAUTENS" #GCHANGE+
|
||||||
[[ ! $? == 0 ]] && echo "GCHANGE PROFILE CREATION FAILED"
|
[[ ! $? == 0 ]] && echo "GCHANGE PROFILE CREATION FAILED"
|
||||||
|
@ -63,32 +63,36 @@ if [[ ! -s ~/.zen/game/players/${PLAYER}/ipfs/cesium.json ]]; then
|
||||||
########################################################################
|
########################################################################
|
||||||
echo "${PLAYER} CESIUM+ PROFILE https://demo.cesium.app/#/app/wot/lg?q=$G1PUB"
|
echo "${PLAYER} CESIUM+ PROFILE https://demo.cesium.app/#/app/wot/lg?q=$G1PUB"
|
||||||
########################################################################
|
########################################################################
|
||||||
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://g1.data.presles.fr" set -n "${NAME}" -d "${DESCR}" -v "${VILLE}" -a "${ADRESSE}" --s "http://ipfs.localhost:8080/ipns/$ASTRONAUTENS" #CESIUM+
|
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://g1.data.e-is.pro" set -n "${NAME}" -d "${DESCR}" -v "${VILLE}" -a "${ADRESSE}" --s "http://ipfs.localhost:8080/ipns/$ASTRONAUTENS" #CESIUM+
|
||||||
[[ ! $? == 0 ]] && echo "CESIUM PROFILE CREATION FAILED"
|
[[ ! $? == 0 ]] && echo "CESIUM PROFILE CREATION FAILED"
|
||||||
## GET IT BACK
|
|
||||||
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://g1.data.presles.fr" get > ~/.zen/game/players/${PLAYER}/ipfs/cesium.json
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## GET PROFILE BACK
|
||||||
|
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://data.gchange.fr" get > ~/.zen/game/players/${PLAYER}/ipfs/gchange.json
|
||||||
|
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://g1.data.e-is.pro" get > ~/.zen/game/players/${PLAYER}/ipfs/cesium.json
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
echo "########################################################################"
|
echo "### ${PLAYER} ##########################################################"
|
||||||
echo "SCANNING ${PLAYER} - $G1PUB - Gchange FRIENDS"
|
echo "SCANNING - $G1PUB Gchange FRIENDS"
|
||||||
echo "########################################################################"
|
echo "########################################################################"
|
||||||
################## CHECKING WHO GAVE ME STARS
|
################## CHECKING WHO GAVE ME STARS
|
||||||
################## BOOTSTRAP LIKES THEM BACK
|
################## BOOTSTRAP LIKES THEM BACK
|
||||||
################## SEND ipfstryme MESSAGES to FRIENDS
|
################## SEND ipfstryme MESSAGES to FRIENDS
|
||||||
rm -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/my_star_level
|
rm -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/my_star_level
|
||||||
## Getting Gchange liking_me list
|
## Getting Gchange liking_me list
|
||||||
echo "Getting received stars"
|
echo "Checking received stars"
|
||||||
################################## JAKLIS PLAYER stars
|
################################## JAKLIS PLAYER stars
|
||||||
~/.zen/Astroport.ONE/tools/timeout.sh -t 20 \
|
~/.zen/Astroport.ONE/tools/timeout.sh -t 20 \
|
||||||
~/.zen/Astroport.ONE/tools/jaklis/jaklis.py \
|
~/.zen/Astroport.ONE/tools/jaklis/jaklis.py \
|
||||||
-k ~/.zen/game/players/${PLAYER}/secret.dunikey \
|
-k ~/.zen/game/players/${PLAYER}/secret.dunikey \
|
||||||
-n "https://data.gchange.fr" stars > ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/received_stars.json
|
-n "https://data.gchange.fr" stars > ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/received_stars.json
|
||||||
|
|
||||||
|
[[ ! $(cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/received_stars.json | jq -r '.likes[].issuer') ]] && echo "Niveau Ŋ0 - Activez le niveau de confiance Ŋ1" && exit 0
|
||||||
|
|
||||||
cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/received_stars.json | jq -r '.likes[].issuer' | sort | uniq > ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/liking_me
|
cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/received_stars.json | jq -r '.likes[].issuer' | sort | uniq > ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/liking_me
|
||||||
echo "cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/received_stars.json | jq -r"
|
# echo "cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/received_stars.json | jq -r" # DEBUG
|
||||||
|
|
||||||
for liking_me in $(cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/liking_me | sort | uniq);
|
for liking_me in $(cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/liking_me | sort | uniq);
|
||||||
do
|
do
|
||||||
|
|
|
@ -42,7 +42,7 @@ if [[ $SALT != "" && PEPPER != "" ]]; then
|
||||||
|
|
||||||
${MY_PATH}/keygen -t ipfs -o ~/.zen/tmp/${MOATS}/player.key "$SALT" "$PEPPER" 2>/dev/null
|
${MY_PATH}/keygen -t ipfs -o ~/.zen/tmp/${MOATS}/player.key "$SALT" "$PEPPER" 2>/dev/null
|
||||||
ASTRONAUTENS=$(ipfs key import ${MOATS} -f pem-pkcs8-cleartext ~/.zen/tmp/${MOATS}/player.key 2>/dev/null)
|
ASTRONAUTENS=$(ipfs key import ${MOATS} -f pem-pkcs8-cleartext ~/.zen/tmp/${MOATS}/player.key 2>/dev/null)
|
||||||
echo "/ipns/${ASTRONAUTENS}"
|
# echo "/ipns/${ASTRONAUTENS}"
|
||||||
|
|
||||||
ipfs key rm ${MOATS} 2>/dev/null ## CLEANING
|
ipfs key rm ${MOATS} 2>/dev/null ## CLEANING
|
||||||
|
|
||||||
|
@ -50,12 +50,10 @@ if [[ $SALT != "" && PEPPER != "" ]]; then
|
||||||
|
|
||||||
## GETTING LAST TW via IPFS or HTTP GW
|
## GETTING LAST TW via IPFS or HTTP GW
|
||||||
[[ $YOU ]] \
|
[[ $YOU ]] \
|
||||||
&& echo "ipfs --timeout 30s cat /ipns/${ASTRONAUTENS} > ~/.zen/tmp/${MOATS}/TW/index.html ($YOU)" \
|
&& ipfs --timeout 20s cat /ipns/${ASTRONAUTENS} > ~/.zen/tmp/${MOATS}/TW/index.html
|
||||||
&& ipfs --timeout 30s cat /ipns/${ASTRONAUTENS} > ~/.zen/tmp/${MOATS}/TW/index.html
|
|
||||||
|
|
||||||
[[ ! -s ~/.zen/tmp/${MOATS}/TW/index.html ]] \
|
[[ ! -s ~/.zen/tmp/${MOATS}/TW/index.html ]] \
|
||||||
&& echo "TRYING $LIBRA/ipns/${ASTRONAUTENS}" \
|
&& curl -m 20 -so ~/.zen/tmp/${MOATS}/TW/index.html "$LIBRA/ipns/${ASTRONAUTENS}"
|
||||||
&& curl -m 30 -so ~/.zen/tmp/${MOATS}/TW/index.html "$LIBRA/ipns/${ASTRONAUTENS}"
|
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
## AUCUN RESULTAT
|
## AUCUN RESULTAT
|
||||||
|
@ -295,7 +293,7 @@ qrencode -s 12 -o "$HOME/.zen/game/players/$PLAYER/QR.ASTRONAUTENS.png" "https:/
|
||||||
echo; echo "Création de votre Clef et QR codes d'accès au niveau Astroport Ŋ1"; sleep 1
|
echo; echo "Création de votre Clef et QR codes d'accès au niveau Astroport Ŋ1"; sleep 1
|
||||||
|
|
||||||
echo; echo "*** HOME : ~/.zen/game/players/$PLAYER/"; sleep 1
|
echo; echo "*** HOME : ~/.zen/game/players/$PLAYER/"; sleep 1
|
||||||
echo "*** IPNS Ŋ0 KEY : $PLAYER";
|
echo "*** PLAYER : $PLAYER";
|
||||||
echo; echo "GW : https://ipfs.copylaradio.com/ipns/${ASTRONAUTENS}"; sleep 1
|
echo; echo "GW : https://ipfs.copylaradio.com/ipns/${ASTRONAUTENS}"; sleep 1
|
||||||
|
|
||||||
# PASS CRYPTING KEY
|
# PASS CRYPTING KEY
|
||||||
|
|
|
@ -26,7 +26,7 @@ echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
|
||||||
## EXTRACT G1Voeu from PLAYER TW
|
## EXTRACT G1Voeu from PLAYER TW
|
||||||
echo "Exporting $PLAYER TW [tag[G1Voeu]]"
|
echo "Exporting $PLAYER TW [tag[G1Voeu]]"
|
||||||
rm -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${PLAYER}.g1voeu.json
|
rm -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${PLAYER}.g1voeu.json
|
||||||
tiddlywiki --load ${INDEX} --output ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu --render '.' "${PLAYER}.g1voeu.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[G1Voeu]]'
|
tiddlywiki --load ~/.zen/game/players/$PLAYER/ipfs/moa/index.html --output ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu --render '.' "${PLAYER}.g1voeu.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[G1Voeu]]'
|
||||||
|
|
||||||
[[ ! -s ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${PLAYER}.g1voeu.json ]] && echo "AUCUN G1VOEU - EXIT -" && exit 1
|
[[ ! -s ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${PLAYER}.g1voeu.json ]] && echo "AUCUN G1VOEU - EXIT -" && exit 1
|
||||||
|
|
||||||
|
@ -36,8 +36,6 @@ echo "VOEUX : ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${PLAYER}.g1wishes.txt "
|
||||||
echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
|
echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
|
||||||
|
|
||||||
|
|
||||||
exit
|
|
||||||
|
|
||||||
for v in $(cat ~/.zen/game/players/*/voeux/*/.title); do
|
for v in $(cat ~/.zen/game/players/*/voeux/*/.title); do
|
||||||
g1pub=$(grep -r $v ~/.zen/game/players/*/voeux/ 2>/dev/null | rev | cut -d '/' -f 2 | rev )
|
g1pub=$(grep -r $v ~/.zen/game/players/*/voeux/ 2>/dev/null | rev | cut -d '/' -f 2 | rev )
|
||||||
# echo "$v : $g1pub"
|
# echo "$v : $g1pub"
|
||||||
|
|
|
@ -24,7 +24,7 @@ mail="$1" # EMAIL DESTINATAIRE
|
||||||
messfile="$2" # FICHIER A AJOUTER AU CORPS MESSAGE
|
messfile="$2" # FICHIER A AJOUTER AU CORPS MESSAGE
|
||||||
|
|
||||||
SUBJECT="[(♥‿‿♥)] Station Astroport : $(hostname)"
|
SUBJECT="[(♥‿‿♥)] Station Astroport : $(hostname)"
|
||||||
MESSAGE="( ◕‿◕)\n\n Bonjour $PLAYER\n\n\n REBOOT https://astroport.copylaradio.com .\n\nAstroport\n($IPFSNODEID)"
|
MESSAGE="( ◕‿◕)\n\n Bonjour $PLAYER\n\n UN MESSAGE POUR VOUS.\n\nAstroport\n/ipns/$IPFSNODEID"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -38,7 +38,7 @@ Bcc: support@qo-op.com
|
||||||
Subject: SUBJECT
|
Subject: SUBJECT
|
||||||
MESSAGE
|
MESSAGE
|
||||||
" > ~/.zen/tmp/email.txt
|
" > ~/.zen/tmp/email.txt
|
||||||
[[ ! -s $messfile ]] && [[ $(file --mime-type -b $messfile) == 'text/plain' ]] && cat $messfile >> ~/.zen/tmp/email.txt
|
[[ -s $messfile ]] && cat $messfile >> ~/.zen/tmp/email.txt
|
||||||
|
|
||||||
|
|
||||||
cat ~/.zen/tmp/email.txt | sed "s~EMAIL~${mail}~g" | sed "s~SUBJECT~${SUBJECT}~g" | sed "s~MESSAGE~${MESSAGE}~g" | ssmtp -v ${mail}
|
cat ~/.zen/tmp/email.txt | sed "s~EMAIL~${mail}~g" | sed "s~SUBJECT~${SUBJECT}~g" | sed "s~MESSAGE~${MESSAGE}~g" | ssmtp -v ${mail}
|
||||||
|
|
Loading…
Reference in New Issue