remove installs bits, only used to join the domain now
This commit is contained in:
@@ -5,25 +5,6 @@ if [ "$EUID" -ne 0 ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ -f /etc/debian_version ]; then
|
||||
wget -O - http://repo.pbis.beyondtrust.com/apt/RPM-GPG-KEY-pbis | apt-key add -
|
||||
wget -O /etc/apt/sources.list.d/pbiso.list http://repo.pbis.beyondtrust.com/apt/pbiso.list
|
||||
apt update
|
||||
apt install -y pbis-open sudo nano htop nload iperf3 iperf3 open-vm-tools unattended-upgrade
|
||||
elif [ -f /etc/redhat-release ]; then
|
||||
yum install -y wget epel-release
|
||||
wget -O /etc/yum.repos.d/pbiso.repo http://repo.pbis.beyondtrust.com/yum/pbiso.repo
|
||||
yum clean all
|
||||
yum install -y pbis-open sudo nano htop nload iperf3 bind-utils open-vm-tools yum-cron
|
||||
sed --in-place "s/^update_cmd\ =\ default/update_cmd\ =\ security/" /etc/yum/yum-cron.conf
|
||||
sed --in-place "s/^apply_updates\ =\ no/apply_updates\ =\ yes/" /etc/yum/yum-cron.conf
|
||||
systemctl enable yum-cron
|
||||
systemctl start yum-cron
|
||||
else
|
||||
echo "Unable to determine linux distro"
|
||||
exit
|
||||
fi
|
||||
|
||||
# ask for the domain, username, and password
|
||||
read -e -p "Enter Domain name: " -i "home.johnhgaunt.com" domain
|
||||
read -e -p "Enter netBIOS name: " -i "GAUNT" netbiosname
|
||||
|
||||
Reference in New Issue
Block a user