LOVELAND ENTRANCE RECEIVED
This commit is contained in:
parent
8da5e36b75
commit
98c50e06e2
|
@ -14,8 +14,11 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
|||
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=$(ipfs id -f='<id>\n')
|
||||
export YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || er+=" ipfs daemon not running"
|
||||
export IPFSNODEID=$(ipfs id -f='<id>\n') || er+=" ipfs id problem"
|
||||
export WHOAMI=$(sbotc whoami | jq -r .id) || er+=" sbotc whoami problem"
|
||||
[[ "$YOU" == "" || "$IPFSNODEID" == "" || "$WHOAMI" == "" ]] && echo "ERROR : $er " && exit 1
|
||||
|
||||
TODAY=$(date '+%Y%m%d')
|
||||
timestamp=$(date -u +%s%N | cut -b1-13)
|
||||
# VERIFY task relay directory EXISTS and is 777
|
||||
|
|
|
@ -20,7 +20,12 @@ if (strlen($_REQUEST['phone']) == 10 ) {
|
|||
$fp = fopen('/tmp/loveland_entrance/'.$HPHONE, 'w');
|
||||
|
||||
fwrite($fp, $PHONE.'|'.$PARRAIN.'|'.$naissance);
|
||||
echo "$PHONE.'|'.$PARRAIN.'|'.$naissance";
|
||||
fclose($fp);
|
||||
|
||||
chmod('/tmp/loveland_entrance/'.$HPHONE, 0777);
|
||||
|
||||
echo 'LOVELAND ENTRANCE RECEIVED FROM '.$PHONE.'|'.$PARRAIN.'|'.$naissance;
|
||||
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue