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
|
if [[ $exit_code -ne 0 ]]; then
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
systemctl_func "start" "$cron_service_name"
|
failed_soup_restore_items
|
||||||
systemctl_func "start" "salt-master"
|
|
||||||
systemctl_func "start" "salt-minion"
|
|
||||||
enable_highstate
|
|
||||||
|
|
||||||
printf '%s' "Soup failed with error $exit_code: "
|
printf '%s' "Soup failed with error $exit_code: "
|
||||||
case $exit_code in
|
case $exit_code in
|
||||||
@@ -358,8 +355,12 @@ masterlock() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
masterunlock() {
|
masterunlock() {
|
||||||
echo "Unlocking Salt Master"
|
if [ -f $BACKUPTOPFILE ]; then
|
||||||
mv -v $BACKUPTOPFILE $TOPFILE
|
echo "Unlocking Salt Master"
|
||||||
|
mv -v $BACKUPTOPFILE $TOPFILE
|
||||||
|
else
|
||||||
|
echo "Salt Master does not need unlocked."
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
phases_pillar_2_4_80() {
|
phases_pillar_2_4_80() {
|
||||||
@@ -1079,6 +1080,13 @@ apply_hotfix() {
|
|||||||
fi
|
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
|
#upgrade salt to 3004.1
|
||||||
#2_3_10_hotfix_1() {
|
#2_3_10_hotfix_1() {
|
||||||
@@ -1118,6 +1126,8 @@ main() {
|
|||||||
echo ""
|
echo ""
|
||||||
require_manager
|
require_manager
|
||||||
|
|
||||||
|
failed_soup_restore_items
|
||||||
|
|
||||||
check_pillar_items
|
check_pillar_items
|
||||||
|
|
||||||
echo "Checking to see if this is an airgap install."
|
echo "Checking to see if this is an airgap install."
|
||||||
|
|||||||
Reference in New Issue
Block a user