Update ADconnection.sh

This commit is contained in:
PierreGode 2020-07-13 08:17:44 +02:00 committed by GitHub
parent de07bfa609
commit 86baa261e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -872,6 +872,8 @@ echo "${INTRO_TEXT}Detecting Ubuntu $var${END}"
sudo echo "${INTRO_TEXT}Realm=$DOMAIN${END}"
echo "${INTRO_TEXT}Joining Ubuntu $var${END}"
echo ""
if [ -z readfile ]
then
admin=$( sudo grep ADADMIN readfile | awk '{print $3}' )
if [ "$admin" = "null" ]
then
@ -881,6 +883,10 @@ read -r ADMIN
else
ADMIN=$( echo $admin )
fi
else
echo "${INTRO_TEXT}Please type Admin user:${END}"
read -r ADMIN
fi
encrypt=$( sudo grep ENCRYPTEDPASSWD readfile | awk '{print $3}' )
if [ "$encrypt" = "null" ] || [ "$encrypt" = "no" ]
then