Update ADconnection.sh

This commit is contained in:
PierreGode 2018-08-08 10:01:34 +02:00 committed by GitHub
parent 29a264e12b
commit 37d01e0983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -744,19 +744,19 @@ exit
} }
############################### Update to Realmd from likewise ################## ############################### Update to Realmd from likewise ##################
#this section has been depricated #this section has been depricated
#If you are still using likewise plese uncomment line 33 #If you are still using likewise plese uncomment lines below and line 33
Realmdupdate11(){ #Realmdupdate11(){
export HOSTNAME #export HOSTNAME
myhost=$( hostname ) #myhost=$( hostname )
echo "This will delete your homefolder and replace it. Please do a BACKUP" #echo "This will delete your homefolder and replace it. Please do a BACKUP"
echo "Press ctrl C to cancel skript if you wish to make an backup first" #echo "Press ctrl C to cancel skript if you wish to make an backup first"
sleep 5 #sleep 5
sudo apt-get update #sudo apt-get update
clear #clear
echo "Remember to recreate AD computer Object if you have upgraded the OS "versions will now match!" #echo "Remember to recreate AD computer Object if you have upgraded the OS "versions will now match!"
sleep 3 #sleep 3
sudo domainjoin-cli leave #sudo domainjoin-cli leave
linuxclient #linuxclient
} }
############################### Fail check #################################### ############################### Fail check ####################################
@ -855,9 +855,9 @@ fi
############################### Reauth ########################################## ############################### Reauth ##########################################
Reauthenticate(){ #Reauthenticate(){
echo "" #echo ""
} #}
########################################### Leave Realm ################################ ########################################### Leave Realm ################################