From b424b9c3b87cb8f174ad16305ad191a517c565b2 Mon Sep 17 00:00:00 2001 From: "Gaunt, John" Date: Sun, 7 Jan 2018 21:36:09 -0500 Subject: [PATCH] Update domainjoin.sh --- domainjoin.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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