test
This commit is contained in:
parent
a9489ef2df
commit
f309d42259
@ -18,8 +18,9 @@ else
|
||||
fi
|
||||
|
||||
## FreeIPA Realm Join
|
||||
if (whiptail --title "FreeIPA Relam Join" --yes-button "yes" --no-button "no" --yesno "Do You want to join a FreeIPA Realm?" 10 80)
|
||||
then
|
||||
if [ "$realm_join" == 1 ]; then
|
||||
if (whiptail --title "FreeIPA Relam Join" --yes-button "yes" --no-button "no" --yesno "Do You want to join a FreeIPA Realm?" 10 80)
|
||||
then
|
||||
|
||||
if [[ $HOSTNAME == *template* ]]; then
|
||||
echo "Hostname $HOSTNAME contains the word 'template', skipping realm joining"
|
||||
@ -32,6 +33,7 @@ then
|
||||
freeipa_password=$(whiptail --passwordbox "Please enter the password for the FreeIPA admin user: $freeipa_admin" 8 78 --title "FreeIPA Password Prompt" 3>&1 1>&2 2>&3)
|
||||
ipa-client-install --mkhomedir --no-ntp --principal="$freeipa_admin" --password="$freeipa_password" --enable-dns-updates --unattended
|
||||
fi
|
||||
else
|
||||
else
|
||||
echo "Skipping realm joining"
|
||||
fi
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user