From b7aff4f4dfe36343fa905d0cfe672b6e032c5cb6 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Mon, 4 Apr 2022 12:28:23 -0400 Subject: [PATCH] remove influxdb state files --- salt/common/tools/sbin/soup | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index 9d8329b03..673d4c1f9 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -497,10 +497,10 @@ stop_salt_master() { set +e echo "" echo "Killing all Salt jobs across the grid." - salt \* saltutil.kill_all_jobs + salt \* saltutil.kill_all_jobs >> $SOUP_LOG 2>&1 echo "" echo "Killing any queued Salt jobs on the manager." - pkill -9 -ef "/usr/bin/python3 /bin/salt" + pkill -9 -ef "/usr/bin/python3 /bin/salt" >> $SOUP_LOG 2>&1 set -e echo "" @@ -1003,6 +1003,7 @@ fix_wazuh() { # Update the repo files so it can actually upgrade upgrade_salt fi + rm -f /opt/so/state/influxdb_continuous_query.py.patched /opt/so/state/influxdbmod.py.patched /opt/so/state/influxdb_retention_policy.py.patched systemctl_func "start" "salt-master" systemctl_func "start" "salt-minion" systemctl_func "start" "$cron_service_name"