From 06dff8bbf09a05e727159b00e399483d71b6cfb1 Mon Sep 17 00:00:00 2001 From: PierreGode <8579922+PierreGode@users.noreply.github.com> Date: Tue, 8 Dec 2020 09:01:13 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index 03b6626..54a122e 100755 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -815,7 +815,7 @@ UbuntU(){ export HOSTNAME myhost=$( hostname | cut -d '.' -f1 ) clear -sudo apt install adcli=0.8.2-1 -y +sudo apt install adcli=0.8.2-1 -y --allow-downgrades sudo echo "${NUMBER}Installing packages do no abort!.......${END}" if ! sudo apt-get -qq install realmd adcli sssd ntp curl -y && sudo apt-get -qq install -f -y then @@ -1073,7 +1073,7 @@ export HOSTNAME myhost=$( hostname | cut -d '.' -f1 ) clear sudo echo "${RED_TEXT}Installing packages do no abort!.......${END}" -sudo apt install adcli=0.8.2-1 -y +sudo apt install adcli=0.8.2-1 -y --allow-downgrades sudo apt-get -qq install realmd adcli sssd -y sudo apt-get -qq install ntp -y sudo apt-get -qq install -y sssd-tools samba-common krb5-user curl @@ -1300,7 +1300,7 @@ export whoami whoamis=$( whoami ) admins=$( grep home /etc/passwd | grep bash | cut -d ':' -f1 ) sudo echo "${RED_TEXT}Installing packages do no abort!.......${END}" -sudo apt install adcli=0.8.2-1 -y +sudo apt install adcli=0.8.2-1 -y --allow-downgrades sudo apt-get -qq update sudo apt-get -qq install libsss-sudo -y sudo apt-get -qq install adcli -y @@ -1394,7 +1394,7 @@ echo "$admins ALL=(ALL:ALL) ALL | tee -a /etc/sudoers.d/admin" fi clear sudo echo "${RED_TEXT}Installing packages do no abort!.......${END}" -sudo apt install adcli=0.8.2-1 -y +sudo apt install adcli=0.8.2-1 -y --allow-downgrades sudo apt-get -qq update sudo apt-get -qq install libsss-sudo -y sudo apt-get -qq install realmd adcli sssd curl -y @@ -1755,7 +1755,7 @@ export HOSTNAME myhost=$( hostname | cut -d '.' -f1 ) sudo apt-get -qq install -y realmd curl sssd sssd-tools samba-common krb5-user sudo apt-get -qq install -f -y -sudo apt install adcli=0.8.2-1 -y +sudo apt install adcli=0.8.2-1 -y --allow-downgrades echo "hostname is $myhost" echo "Looking for Realms.. please wait" REALM=$( sudo grep DOMAIN readfile | awk '{print $3}' ) @@ -2490,7 +2490,7 @@ clear sudo echo "${RED_TEXT}Installing packages do no abort!.......${END}" sudo apt-get -qq install realmd curl adcli sssd -y sudo apt-get -qq install ntp -y -sudo apt install adcli=0.8.2-1 -y +sudo apt install adcli=0.8.2-1 -y --allow-downgrades sudo apt-get install -f -y clear if ! sudo dpkg -l | grep realmd @@ -2538,7 +2538,7 @@ if [ "$var" -eq "14" ] then echo "Installing additional dependencies" sudo apt-get -qq install -y realmd curl sssd sssd-tools samba-common krb5-user -sudo apt install adcli=0.8.2-1 -y +sudo apt install adcli=0.8.2-1 -y --allow-downgrades sudo apt-get install -f -y clear echo "${INTRO_TEXT}Detecting Ubuntu $var${END}" @@ -2580,7 +2580,7 @@ then if [ -f /etc/apt/sources.list.d/aroth-ubuntu-ppa-eoan.list ] then sudo apt-get update -sudo apt-get --only-upgrade install adcli +sudo apt install adcli=0.8.2-1 -y --allow-downgrades --allow-downgrades else echo"" echo "Fixing krb5.keytab: Bad encryption type for ubuntu 19.10" @@ -2589,7 +2589,6 @@ echo "To avoid encryption error with adcli please accept PPA below for an adcli echo "" sudo add-apt-repository ppa:aroth/ppa sudo apt-get update -sudo apt-get --only-upgrade install adcli echo "" fi fi