[fix] so-user spelling+syntax fixes

* Consistent ending punctuation
* Consistent capitalization
* Correct comparison operators
This commit is contained in:
William Wernert
2020-10-15 13:44:23 -04:00
parent 35b10b1f91
commit 1fdf431c12
5 changed files with 13 additions and 13 deletions

View File

@@ -49,9 +49,9 @@ fi
# Create new user in TheHive
resp=$(curl -sk -XPOST -H "Authorization: Bearer $THEHIVE_KEY" -H "Content-Type: application/json" "https://$THEHIVE_IP/thehive/api/user" -d "{\"login\" : \"$THEHIVE_USER\",\"name\" : \"$THEHIVE_USER\",\"roles\" : [\"read\",\"alert\",\"write\",\"admin\"],\"preferences\" : \"{}\",\"password\" : \"$THEHIVE_PASS\"}")
if [[ "$resp" =~ \"status\":\"Ok\" ]]; then
echo "Successfully added user to TheHive."
echo "Successfully added user to TheHive"
else
echo "Unable to add user to TheHive; user might already exist."
echo "Unable to add user to TheHive; user might already exist"
echo $resp
exit 2
fi