if deb fam, stop salt-master and salt-minion after salt upgrade

This commit is contained in:
m0duspwnens
2023-10-24 12:52:25 -04:00
parent fab91edd2d
commit 6d3465626e
2 changed files with 11 additions and 1 deletions

View File

@@ -453,7 +453,7 @@ wait_for_salt_minion() {
local maxAttempts=20
until check_salt_minion_status "$minion" "$timeout" "$logfile"; do
attempt=$((attempt+1))
if [[ $attempt -gt $maxAttempts ]]; then
if [[ $attempt -eq $maxAttempts ]]; then
return 1
fi
sleep 10