mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
stop cron before soup upgrades the manager, start cron at the end. add cron state that is in included in common
This commit is contained in:
@@ -988,6 +988,7 @@ main() {
|
||||
verify_latest_update_script
|
||||
echo ""
|
||||
set_os
|
||||
set_cron_service_name
|
||||
set_palette
|
||||
check_elastic_license
|
||||
echo ""
|
||||
@@ -1021,6 +1022,10 @@ main() {
|
||||
echo "Performing upgrade from Security Onion $INSTALLEDVERSION to Security Onion $NEWVERSION."
|
||||
echo ""
|
||||
|
||||
echo "Stopping $cron_service_name service at $(date +"%T.%6N")."
|
||||
echo ""
|
||||
systemctl stop "$cron_service_name"
|
||||
|
||||
# update mine items prior to stopping salt-minion and salt-master
|
||||
update_salt_mine
|
||||
|
||||
@@ -1191,6 +1196,9 @@ main() {
|
||||
esac
|
||||
fi
|
||||
|
||||
echo "Starting $cron_service_name service at $(date +"%T.%6N")."
|
||||
systemctl start "$cron_service_name"
|
||||
|
||||
if [[ $NUM_MINIONS -gt 1 ]]; then
|
||||
|
||||
cat << EOF
|
||||
|
||||
Reference in New Issue
Block a user