[fix] Change test to check value of $SO_ERROR

This commit is contained in:
William Wernert
2020-07-07 17:38:23 -04:00
parent 2992938596
commit 72a98b33a7

View File

@@ -620,7 +620,7 @@ if [[ -n $ALLOW_ROLE && -n $ALLOW_CIDR ]]; then
IP=$ALLOW_CIDR so-allow -$ALLOW_ROLE >> $setup_log 2>&1 IP=$ALLOW_CIDR so-allow -$ALLOW_ROLE >> $setup_log 2>&1
fi fi
if [[ $success != 0 || -z $SO_ERROR ]]; then whiptail_setup_failed if [[ $success != 0 || $SO_ERROR == 1 ]]; then whiptail_setup_failed
else else
whiptail_setup_complete whiptail_setup_complete
if [[ $THEHIVE == 1 ]]; then check_hive_init; fi if [[ $THEHIVE == 1 ]]; then check_hive_init; fi