[feat][WIP] Add option to run so-allow -a <ip/cidr> during setup

This commit is contained in:
William Wernert
2020-07-09 14:47:55 -04:00
parent 206bdc60f3
commit c5eff1d89e
3 changed files with 39 additions and 17 deletions

View File

@@ -331,6 +331,8 @@ else
FLEETNODEPASSWD1=$WEBPASSWD1
fi
if [[ $is_master ]]; then whiptail_so_allow; fi
whiptail_make_changes
if [[ -n "$TURBO" ]]; then
@@ -620,7 +622,7 @@ if [[ -n $ALLOW_ROLE && -n $ALLOW_CIDR ]]; then
IP=$ALLOW_CIDR so-allow -$ALLOW_ROLE >> $setup_log 2>&1
fi
if [[ $success != 0 || $SO_ERROR == 1 ]]; then whiptail_setup_failed
if [[ $success != 0 || -n $SO_ERROR ]]; then whiptail_setup_failed
else
whiptail_setup_complete
if [[ $THEHIVE == 1 ]]; then check_hive_init; fi