Skip to content

Commit fd05618

Browse files
author
Karl Stoney
committed
Some fixes to the demo script
1 parent 3e62906 commit fd05618

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demo-init.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ export PROCESS_GROUP=$(curl -s $API/flow/process-groups/root | jq .processGroupF
2222
export PROCESS_GROUP=$(echo $PROCESS_GROUP | tr -d '"')
2323
echo Process group: $PROCESS_GROUP
2424

25-
curl -s -iv -F template=@config/nifi/users.xml $API/process-groups/$PROCESS_GROUP/templates/upload 2>&1 > /dev/null
25+
curl -s -iv -F template=@config/nifi/users.xml $API/process-groups/$PROCESS_GROUP/templates/upload &>/dev/null
2626

2727
export TEMPLATE_ID=$(curl -s $API/flow/templates | jq .templates | jq '.[]'.id)
2828
export TEMPLATE_ID=$(echo $TEMPLATE_ID | tr -d '"')
2929
echo Template id: $TEMPLATE_ID
3030

3131
export PAYLOAD="{\"templateId\":\"$TEMPLATE_ID\",\"originX\":365,\"originY\":-21}"
3232

33-
curl -s -kH "Content-Type: application/json" -X POST -d $PAYLOAD $API/process-groups/$PROCESS_GROUP/template-instance 2>&1 > /dev/null
33+
curl -s -kH "Content-Type: application/json" -X POST -d $PAYLOAD $API/process-groups/$PROCESS_GROUP/template-instance &>/dev/null
3434

3535
echo Opening NiFi...
3636
echo At this point - you need to enable each of the processors on the left most group

demo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ docker-compose up -d nifi
1919
echo Starting Hue...
2020
docker-compose up -d hue
2121

22-
22+
./demo-init.sh

0 commit comments

Comments
 (0)