fix syntax errors

This commit is contained in:
m0duspwnens
2020-08-13 16:18:02 -04:00
parent 07ef464375
commit 1b4029f74b

View File

@@ -1417,10 +1417,10 @@ salt_checkin() {
LOOP_COUNT=0
while check_service_status "$service"; do
echo "$service still running" >> "$setup_log" 2>&1
if [ LOOP_COUNT -gt 120 ]; then
if [ $LOOP_COUNT -gt 120 ]; then
echo "$service could not be stopped in 120 seconds" >> "$setup_log" 2>&1
whiptail_setup_failed()
exit 1;
whiptail_setup_failed
exit 1
fi
sleep 1;
((LOOP_COUNT+=1))
@@ -1430,10 +1430,10 @@ salt_checkin() {
LOOP_COUNT=0
while ! check_service_status "$service"; do
echo "$service still not running" >> "$setup_log" 2>&1
if [ LOOP_COUNT -gt 120 ]; then
if [ $LOOP_COUNT -gt 120 ]; then
echo "$service could not be started in 120 seconds" >> "$setup_log" 2>&1
whiptail_setup_failed()
exit 1;
whiptail_setup_failed
exit 1
fi
sleep 1;
((LOOP_COUNT+=1))
@@ -1444,10 +1444,10 @@ salt_checkin() {
LOOP_COUNT=0
while check_salt_master_status; do
echo "salt-minion cannot talk to salt-master" >> "$setup_log" 2>&1
if [ LOOP_COUNT -gt 20 ]; then
if [ $LOOP_COUNT -gt 20 ]; then
echo "salt-minion could not talk to salt-master after 20 attempts" >> "$setup_log" 2>&1
whiptail_setup_failed()
exit 1;
whiptail_setup_failed
exit 1
fi
sleep 1;
((LOOP_COUNT+=1))