If the mesh peer name is the same as the username then skip the username selection
This commit is contained in:
parent
a7e76307a5
commit
0eabae8cc9
|
@ -579,6 +579,9 @@ function interactive_configuration {
|
|||
save_configuration_file
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_MESH" && $DEFAULT_DOMAIN_NAME && -d /home/$DEFAULT_DOMAIN_NAME ]]; then
|
||||
MY_USERNAME=$DEFAULT_DOMAIN_NAME
|
||||
else
|
||||
data=$(tempfile 2>/dev/null)
|
||||
trap "rm -f $data" 0 1 2 5 15
|
||||
dialog --title "Select the user account to install as" \
|
||||
|
@ -590,6 +593,8 @@ function interactive_configuration {
|
|||
1) exit 1;;
|
||||
255) exit 1;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ ! $MY_USERNAME ]; then
|
||||
echo 'No user account was selected'
|
||||
exit 64398
|
||||
|
@ -948,7 +953,7 @@ function interactive_configuration {
|
|||
save_configuration_file
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE != $VARIANT_MESH ]]; then
|
||||
if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then
|
||||
while [ ! $MY_NAME ]
|
||||
do
|
||||
data=$(tempfile 2>/dev/null)
|
||||
|
|
Loading…
Reference in New Issue