From 8ad4f473b9daf62610001495bc78a537a7cebae4 Mon Sep 17 00:00:00 2001 From: jgaunt Date: Tue, 21 Jul 2020 12:34:40 -0400 Subject: [PATCH] Add realmd and remove pbis-open --- update.sh | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/update.sh b/update.sh index cf6e6ba..f06fced 100644 --- a/update.sh +++ b/update.sh @@ -73,9 +73,6 @@ elif [ "${OS}" == "CentOS" ]; then # install the epel for other packages and wget yum install -y elrepo-release epel-release yum-utils - # download the repo for PBIS-Open for SSO and Domain - yum-config-manager --add-repo http://repo.pbis.beyondtrust.com/yum/pbiso.repo - # clean the yum cache yum clean all @@ -83,7 +80,7 @@ elif [ "${OS}" == "CentOS" ]; then yum autoremove -y # install the packages - yum install -y pbis-open sudo rsync nano htop nload iperf iperf3 bind-utils yum-cron unzip nfs-utils git wget uptimed net-tools make + yum install -y sudo rsync nano htop nload iperf iperf3 bind-utils yum-cron unzip nfs-utils git wget uptimed net-tools make realmd oddjob oddjob-mkhomedir sssd adcli # install vm tools if [ "${VM}" == "true" ]; then @@ -108,9 +105,6 @@ elif [ "${OS}" == "CentOS" ]; then # install the epel for other packages and wget dnf install -y elrepo-release epel-release yum-utils - # download the repo for PBIS-Open for SSO and Domain - yum-config-manager --add-repo http://repo.pbis.beyondtrust.com/yum/pbiso.repo - # clean the yum cache dnf clean all @@ -120,7 +114,7 @@ elif [ "${OS}" == "CentOS" ]; then # install the packages # libnsl is needed for pbis and needs to be installed already dnf install -y libnsl - dnf install -y sudo pbis-open rsync nano htop iperf3 bind-utils unzip nfs-utils git wget net-tools make dnf-automatic + dnf install -y sudo rsync nano htop iperf3 bind-utils unzip nfs-utils git wget net-tools make dnf-automatic realmd oddjob oddjob-mkhomedir sssd adcli # enable automatic updates sed --in-place "s/^apply_updates\ =\ no/apply_updates\ =\ yes/" /etc/dnf/automatic.conf @@ -130,14 +124,6 @@ elif [ "${OS}" == "CentOS" ]; then if [ "${VM}" == "true" ]; then dnf install -y open-vm-tools fi - if [ ! -f "/opt/pbis/share/pbis.pp" ]; then - # https://github.com/BeyondTrust/pbis-open/issues/242 - cp /opt/pbis/share/rhel/8.0/pbis.pp /opt/pbis/share/ - - # remove and then install pbis-open again - dnf remove -y pbis-open - dnf install -y pbis-open - fi fi # modify ssh to allow root login and then restart the service