diff --git a/domainjoin.sh b/domainjoin.sh index b1578d1..91d790f 100644 --- a/domainjoin.sh +++ b/domainjoin.sh @@ -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