From 0d5e3771f55ec8436024a3c33e68cfd0831ecd88 Mon Sep 17 00:00:00 2001 From: HE Chong Date: Fri, 13 Aug 2021 21:52:19 +0800 Subject: [PATCH] modify user password update script for theHive, keep it in consistency with Fleet counterpart. --- salt/common/tools/sbin/so-thehive-user-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/common/tools/sbin/so-thehive-user-update b/salt/common/tools/sbin/so-thehive-user-update index 7378d0934..6df199f6a 100755 --- a/salt/common/tools/sbin/so-thehive-user-update +++ b/salt/common/tools/sbin/so-thehive-user-update @@ -49,9 +49,9 @@ fi # Change password for user in TheHive resp=$(curl -sk -XPOST -H "Authorization: Bearer $THEHIVE_KEY" -H "Content-Type: application/json" -L "https://$THEHVIE_API_URL/user/${THEHIVE_USER}/password/set" -d "{\"password\" : \"$THEHIVE_PASS\"}") if [[ -z "$resp" ]]; then - echo "Successfully changed TheHive user password" + echo "Successfully updated TheHive user password" else - echo "Changing TheHive user password failed" + echo "Unable to update TheHive user password" echo $resp exit 2 fi