Setup - Fix Hostname Race Condition

This commit is contained in:
Mike Reeves
2019-12-12 20:00:35 -05:00
parent b04da4562c
commit 897cf57042

View File

@@ -153,6 +153,8 @@ if (whiptail_you_sure) ; then
RULESETUP=ETOPEN
whiptail_make_changes
set_hostname
HOSTNAME=$(cat /etc/hostname)
MINION_ID=$(echo $HOSTNAME | awk -F. {'print $1'})
clear_master
mkdir -p /nsm
get_filesystem_root