Only add users to aux systems if those systems are currently running

This commit is contained in:
Jason Ertel
2020-08-31 09:41:01 -04:00
parent 9680270b20
commit 8e06f0453e

View File

@@ -190,9 +190,9 @@ case "${operation}" in
validateEmail "$email"
createUser "$email"
echo "Successfully added new user to SOC"
echo $password | so-thehive-user-add "$email"
echo $password | so-cortex-user-add "$email"
echo $password | so-fleet-user-add "$email"
docker ps | grep so-thehive > /dev/null 2>&1 && echo $password | so-thehive-user-add "$email"
docker ps | grep so-cortex > /dev/null 2>&1 && echo $password | so-cortex-user-add "$email"
docker ps | grep so-fleet > /dev/null 2>&1 && echo $password | so-fleet-user-add "$email"
;;
"list")