From ce8db8abdb09c9c1ed1df922bc2e96ec57536655 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Thu, 11 Feb 2021 10:51:04 -0500 Subject: [PATCH] [fix] Only run salt commands during reinstall if master is configured --- setup/so-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index e7112163e..b00c066d8 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1790,7 +1790,7 @@ reinstall_init() { local service_retry_count=20 { - if command -v salt-call &> /dev/null; then + if command -v salt-call &> /dev/null && grep -q "master:" /etc/salt/minion; then # Disable schedule so highstate doesn't start running during the install salt-call -l info schedule.disable