mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
set_os and set_cron_service_name sooner
This commit is contained in:
@@ -123,7 +123,7 @@ check_elastic_license() {
|
|||||||
check_salt_master_status() {
|
check_salt_master_status() {
|
||||||
local timeout=$1
|
local timeout=$1
|
||||||
echo "Checking if we can talk to the salt master"
|
echo "Checking if we can talk to the salt master"
|
||||||
salt-call state.show_top -t $timeout concurrent=true
|
salt-call state.show_top concurrent=true
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1014,7 +1014,9 @@ main() {
|
|||||||
echo "### Preparing soup at $(date) ###"
|
echo "### Preparing soup at $(date) ###"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if ! check_salt_master_status 30; then
|
set_os
|
||||||
|
set_cron_service_name
|
||||||
|
if ! check_salt_master_status; then
|
||||||
echo "Could not talk to salt master"
|
echo "Could not talk to salt master"
|
||||||
echo "Please run `systemctl status salt-master` to ensure the salt-master service is running."
|
echo "Please run `systemctl status salt-master` to ensure the salt-master service is running."
|
||||||
exit 1
|
exit 1
|
||||||
@@ -1055,8 +1057,6 @@ main() {
|
|||||||
echo "Verifying we have the latest soup script."
|
echo "Verifying we have the latest soup script."
|
||||||
verify_latest_update_script
|
verify_latest_update_script
|
||||||
echo ""
|
echo ""
|
||||||
set_os
|
|
||||||
set_cron_service_name
|
|
||||||
set_palette
|
set_palette
|
||||||
check_elastic_license
|
check_elastic_license
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user