mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
restore services/top at start of soup
This commit is contained in:
@@ -32,10 +32,7 @@ check_err() {
|
||||
if [[ $exit_code -ne 0 ]]; then
|
||||
|
||||
set +e
|
||||
systemctl_func "start" "$cron_service_name"
|
||||
systemctl_func "start" "salt-master"
|
||||
systemctl_func "start" "salt-minion"
|
||||
enable_highstate
|
||||
failed_soup_restore_items
|
||||
|
||||
printf '%s' "Soup failed with error $exit_code: "
|
||||
case $exit_code in
|
||||
@@ -358,8 +355,12 @@ masterlock() {
|
||||
}
|
||||
|
||||
masterunlock() {
|
||||
if [ -f $BACKUPTOPFILE ]; then
|
||||
echo "Unlocking Salt Master"
|
||||
mv -v $BACKUPTOPFILE $TOPFILE
|
||||
else
|
||||
echo "Salt Master does not need unlocked."
|
||||
fi
|
||||
}
|
||||
|
||||
phases_pillar_2_4_80() {
|
||||
@@ -1079,6 +1080,13 @@ apply_hotfix() {
|
||||
fi
|
||||
}
|
||||
|
||||
failed_soup_restore_items() {
|
||||
systemctl_func "start" "$cron_service_name"
|
||||
systemctl_func "start" "salt-master"
|
||||
systemctl_func "start" "salt-minion"
|
||||
enable_highstate
|
||||
masterunlock
|
||||
}
|
||||
|
||||
#upgrade salt to 3004.1
|
||||
#2_3_10_hotfix_1() {
|
||||
@@ -1118,6 +1126,8 @@ main() {
|
||||
echo ""
|
||||
require_manager
|
||||
|
||||
failed_soup_restore_items
|
||||
|
||||
check_pillar_items
|
||||
|
||||
echo "Checking to see if this is an airgap install."
|
||||
|
||||
Reference in New Issue
Block a user