mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Only add users to aux systems if those systems are currently running
This commit is contained in:
@@ -190,9 +190,9 @@ case "${operation}" in
|
|||||||
validateEmail "$email"
|
validateEmail "$email"
|
||||||
createUser "$email"
|
createUser "$email"
|
||||||
echo "Successfully added new user to SOC"
|
echo "Successfully added new user to SOC"
|
||||||
echo $password | so-thehive-user-add "$email"
|
docker ps | grep so-thehive > /dev/null 2>&1 && echo $password | so-thehive-user-add "$email"
|
||||||
echo $password | so-cortex-user-add "$email"
|
docker ps | grep so-cortex > /dev/null 2>&1 && echo $password | so-cortex-user-add "$email"
|
||||||
echo $password | so-fleet-user-add "$email"
|
docker ps | grep so-fleet > /dev/null 2>&1 && echo $password | so-fleet-user-add "$email"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"list")
|
"list")
|
||||||
|
|||||||
Reference in New Issue
Block a user