Skip to content

Commit 825da0d

Browse files
author
mslatour
committed
Fixed reference to old variable
1 parent c10718a commit 825da0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adduser.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ sha224=`python -c "import hashlib;print hashlib.sha224('$password').hexdigest()"
99
idUserJson=`curl -s -X POST -H "Content-Type: application/json" -d "{\"query\":
1010
\"CREATE (user { username: '$username', password: '$sha224' } ) RETURN ID(user)\"}" $NEO4J_URL/db/data/cypher`
1111
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
12+
curl -s -X POST -H "Content-Type: application/json" -d "{\"key\": \"username\",\"value\": \"$username\", \"uri\": \"node/$idUser\"}" $NEO4J_URL/db/data/index/node/users
1313
echo "Added user $username at node $idUser"

0 commit comments

Comments
 (0)