Update domainjoin.sh

This commit is contained in:
2018-01-07 21:36:09 -05:00
parent cfdee03ab7
commit b424b9c3b8

View File

@@ -1,18 +1,18 @@
#!/bin/bash #!/bin/bash
if [[ "$EUID" -ne 0 ]]; then if [ "$EUID" -ne 0 ]; then
echo "Please run as root" echo "Please run as root"
exit exit
fi fi
if [[ -f /etc/debian_version ]]; then if [ -f /etc/debian_version ]; then
wget -O - http://repo.pbis.beyondtrust.com/apt/RPM-GPG-KEY-pbis|sudo apt-key add - wget -O - http://repo.pbis.beyondtrust.com/apt/RPM-GPG-KEY-pbis|sudo apt-key add -
wget -O /etc/apt/sources.list.d/pbiso.list http://repo.pbis.beyondtrust.com/apt/pbiso.list wget -O /etc/apt/sources.list.d/pbiso.list http://repo.pbis.beyondtrust.com/apt/pbiso.list
apt update apt update
apt install -y pbis-open apt install -y pbis-open
fi fi
if [[ -f /etc/redhat-release ]]; then if [ -f /etc/redhat-release ]; then
wget -O /etc/yum.repos.d/pbiso.repo http://repo.pbis.beyondtrust.com/yum/pbiso.repo wget -O /etc/yum.repos.d/pbiso.repo http://repo.pbis.beyondtrust.com/yum/pbiso.repo
yum clean all yum clean all
yum install pbis-open yum install pbis-open