Add realmd and remove pbis-open
This commit is contained in:
18
update.sh
18
update.sh
@@ -73,9 +73,6 @@ elif [ "${OS}" == "CentOS" ]; then
|
|||||||
# install the epel for other packages and wget
|
# install the epel for other packages and wget
|
||||||
yum install -y elrepo-release epel-release yum-utils
|
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
|
# clean the yum cache
|
||||||
yum clean all
|
yum clean all
|
||||||
|
|
||||||
@@ -83,7 +80,7 @@ elif [ "${OS}" == "CentOS" ]; then
|
|||||||
yum autoremove -y
|
yum autoremove -y
|
||||||
|
|
||||||
# install the packages
|
# 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
|
# install vm tools
|
||||||
if [ "${VM}" == "true" ]; then
|
if [ "${VM}" == "true" ]; then
|
||||||
@@ -108,9 +105,6 @@ elif [ "${OS}" == "CentOS" ]; then
|
|||||||
# install the epel for other packages and wget
|
# install the epel for other packages and wget
|
||||||
dnf install -y elrepo-release epel-release yum-utils
|
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
|
# clean the yum cache
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
|
||||||
@@ -120,7 +114,7 @@ elif [ "${OS}" == "CentOS" ]; then
|
|||||||
# install the packages
|
# install the packages
|
||||||
# libnsl is needed for pbis and needs to be installed already
|
# libnsl is needed for pbis and needs to be installed already
|
||||||
dnf install -y libnsl
|
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
|
# enable automatic updates
|
||||||
sed --in-place "s/^apply_updates\ =\ no/apply_updates\ =\ yes/" /etc/dnf/automatic.conf
|
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
|
if [ "${VM}" == "true" ]; then
|
||||||
dnf install -y open-vm-tools
|
dnf install -y open-vm-tools
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
# modify ssh to allow root login and then restart the service
|
# modify ssh to allow root login and then restart the service
|
||||||
|
|||||||
Reference in New Issue
Block a user