From 8ce0f5b7bed3c0b62a7f7ed29d34179571f32d27 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Wed, 26 Jan 2022 08:31:37 -0500 Subject: [PATCH] log removal of root cron --- setup/so-functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index 589427f56..d518a347a 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -2049,9 +2049,6 @@ reserve_ports() { reinstall_init() { info "Putting system in state to run setup again" - - # remove all of root's cronjobs - crontab -r -u root if [[ $install_type =~ ^(MANAGER|EVAL|HELIXSENSOR|MANAGERSEARCH|STANDALONE|FLEET|IMPORT)$ ]]; then local salt_services=( "salt-master" "salt-minion" ) @@ -2062,6 +2059,9 @@ reinstall_init() { local service_retry_count=20 { + # remove all of root's cronjobs + crontab -r -u root + if command -v salt-call &> /dev/null && grep -q "master:" /etc/salt/minion 2> /dev/null; then # Disable schedule so highstate doesn't start running during the install salt-call -l info schedule.disable --local