Redirect stderr of minion grep to /dev/null

This commit is contained in:
William Wernert
2021-02-11 13:49:39 -05:00
parent d9b4c09cf0
commit 188d844d27

View File

@@ -1790,7 +1790,7 @@ reinstall_init() {
local service_retry_count=20 local service_retry_count=20
{ {
if command -v salt-call &> /dev/null && grep -q "master:" /etc/salt/minion; then 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 # Disable schedule so highstate doesn't start running during the install
salt-call -l info schedule.disable salt-call -l info schedule.disable