Skip to content

Commit

Permalink
Update scripts (#29)
Browse files Browse the repository at this point in the history
Update scripts

* Fix script with nightly issue
* Add --accept-licence to accepts licence
  • Loading branch information
MichelDiz authored and martinmr committed Dec 19, 2018
1 parent 3a84ea7 commit 81aac4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
grpcio==1.14.2
grpcio==1.17.1
protobuf==3.6.1
6 changes: 3 additions & 3 deletions scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [[ "$TRAVIS" == true ]]; then
fi

function quit {
echo "Shutting down Dgraph server and zero."
echo "Shutting down Dgraph Alpha and zero."
curl -s localhost:8080/admin/shutdown
# Kill Dgraph zero.
kill -9 $(pgrep -f "dgraph zero") > /dev/null
Expand All @@ -25,8 +25,8 @@ function quit {
}

function start {
echo -e "Starting first server."
dgraph server -p data/p -w data/w --lru_mb 4096 --zero localhost:5080 > data/server.log 2>&1 &
echo -e "Starting first Alpha."
dgraph alpha -p data/p -w data/w --lru_mb 4096 --zero localhost:5080 > data/alpha.log 2>&1 &
# Wait for membership sync to happen.
sleep $sleepTime
return 0
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_dgraph.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

curl https://get.dgraph.io -sSf | bash -s nightly
curl https://get.dgraph.io -sSf | bash -s -- --accept-license

0 comments on commit 81aac4b

Please sign in to comment.