Update domainjoin.sh

This commit is contained in:
2018-01-07 21:01:59 -05:00
parent 844b8cf5c2
commit 93f4248f0e

View File

@@ -1,5 +1,10 @@
#!/bin/bash
if [[ "$EUID" -ne 0 ]]; then
echo "Please run as root"
exit
fi
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