bad sudo
This commit is contained in:
parent
52366218b9
commit
565f3024c1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue