diff --git a/g1sms/sms_ASTROPORT.sh b/g1sms/sms_ASTROPORT.sh index 8a53dff..61e0e9f 100755 --- a/g1sms/sms_ASTROPORT.sh +++ b/g1sms/sms_ASTROPORT.sh @@ -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='\n'") +IPFSNODEID=$(ipfs id -f='\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