We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c10718a commit 825da0dCopy full SHA for 825da0d
adduser.sh
@@ -9,5 +9,5 @@ sha224=`python -c "import hashlib;print hashlib.sha224('$password').hexdigest()"
9
idUserJson=`curl -s -X POST -H "Content-Type: application/json" -d "{\"query\":
10
\"CREATE (user { username: '$username', password: '$sha224' } ) RETURN ID(user)\"}" $NEO4J_URL/db/data/cypher`
11
idUser=`python -c "raw=$idUserJson;print raw['data'][0][0]"`
12
-curl -s -X POST -H "Content-Type: application/json" -d "{\"key\": \"username\", \"value\": \"$username\", \"uri\": \"node/$idUser\"}" $n4j/db/data/index/node/users
+curl -s -X POST -H "Content-Type: application/json" -d "{\"key\": \"username\",\"value\": \"$username\", \"uri\": \"node/$idUser\"}" $NEO4J_URL/db/data/index/node/users
13
echo "Added user $username at node $idUser"
0 commit comments