mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
[fix] Don't SIGKILL salt services + disable highstate schedule
This commit is contained in:
@@ -1384,8 +1384,13 @@ reinstall_init() {
|
|||||||
info "Putting system in state to run setup again"
|
info "Putting system in state to run setup again"
|
||||||
|
|
||||||
{
|
{
|
||||||
# Kill any salt processes
|
# Disable all scheduled jobs
|
||||||
pkill -9 -ef /usr/bin/salt
|
if command -v salt-call &> /dev/null; then
|
||||||
|
salt-call schedule.disable
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Kill any salt processes (safely)
|
||||||
|
systemctl stop salt-*
|
||||||
|
|
||||||
# Remove all salt configs
|
# Remove all salt configs
|
||||||
rm -rf /etc/salt/global /etc/salt/minion /etc/salt/master /etc/salt/pki/*
|
rm -rf /etc/salt/global /etc/salt/minion /etc/salt/master /etc/salt/pki/*
|
||||||
|
|||||||
Reference in New Issue
Block a user