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
if [[ "$EUID" -ne 0 ]]; then
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
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 /etc/apt/sources.list.d/pbiso.list http://repo.pbis.beyondtrust.com/apt/pbiso.list
apt update
apt install -y pbis-open
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
yum clean all
yum install pbis-open