This commit is contained in:
qo-op 2020-05-13 23:04:17 +02:00
parent 52366218b9
commit 565f3024c1
1 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ source $MY_PATH/init.sh
source $MY_PATH/functions.sh
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1);
IPFSNODEID=$(su $YOU -c "ipfs id -f='<id>\n'")
IPFSNODEID=$(ipfs id -f='<id>\n')
TODAY=$(date '+%Y%m%d')
timestamp=$(date -u +%s%N | cut -b1-13)
@ -52,13 +52,13 @@ for hashfile in $(ls /tmp/loveland_entrance/); do
echo "Astroport Ajax Request received $PP"
if [[ ! -f /home/$YOU/.zen/g1sms_wallets/$PHONE/_pub ]]; then
# UNKNOW
# PHONE IS UNKNOW !
# CHECK for Associated PARRAIN. GET PubKey?
PARRAIN=$(echo "$PARRAIN" | grep -E "([A-Za-z0-9\-\_]+$)")
[[ $PARRAIN ]] && MEMRIB=$(sms_uid2key "$PARRAIN" "$PHONE" "$PIN") && echo "RIB PARRAIN: $MEMRIB"
# CREATE G1 WALLET
./sms_NEW.sh "$PHONE" "$PARRAIN"
.$MY_PATH/sms_NEW.sh "$PHONE" "$PARRAIN"
else
# ACCOUNT ALREADY EXISTING