From a9ccd17d89034791fbf0de55352f889eb03b2fcb Mon Sep 17 00:00:00 2001 From: Wes Lambert Date: Tue, 28 Jan 2020 14:34:19 +0000 Subject: [PATCH] Update Wazuh scripts --- salt/common/tools/sbin/so-wazuh-restart | 6 ++++-- salt/common/tools/sbin/so-wazuh-start | 7 +++++-- salt/common/tools/sbin/so-wazuh-stop | 7 +++++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/salt/common/tools/sbin/so-wazuh-restart b/salt/common/tools/sbin/so-wazuh-restart index 3183479c4..34e2eee9a 100644 --- a/salt/common/tools/sbin/so-wazuh-restart +++ b/salt/common/tools/sbin/so-wazuh-restart @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2014,2015,2016,2017,2018, 2019 Security Onion Solutions, LLC +# Copyright 2014,2015,2016,2017,2018,2019,2020 Security Onion Solutions, LLC # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,4 +14,6 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -docker stop so-wazuh && sudo docker rm so-wazuh && salt-call state.apply wazuh +. /usr/sbin/so-common + +/usr/sbin/so-restart wazuh $1 diff --git a/salt/common/tools/sbin/so-wazuh-start b/salt/common/tools/sbin/so-wazuh-start index dd64354c7..607f59ae7 100644 --- a/salt/common/tools/sbin/so-wazuh-start +++ b/salt/common/tools/sbin/so-wazuh-start @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2014,2015,2016,2017,2018, 2019 Security Onion Solutions, LLC +# Copyright 2014,2015,2016,2017,2018,2019,2020 Security Onion Solutions, LLC # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,4 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -docker stop so-wazuh +. /usr/sbin/so-common + +/usr/sbin/so-start wazuh $1 + diff --git a/salt/common/tools/sbin/so-wazuh-stop b/salt/common/tools/sbin/so-wazuh-stop index dd64354c7..399d14567 100644 --- a/salt/common/tools/sbin/so-wazuh-stop +++ b/salt/common/tools/sbin/so-wazuh-stop @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2014,2015,2016,2017,2018, 2019 Security Onion Solutions, LLC +# Copyright 2014,2015,2016,2017,2018,2019,2020 Security Onion Solutions, LLC # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,4 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -docker stop so-wazuh +. /usr/sbin/so-common + +/usr/sbin/so-stop wazuh $1 +