Again, another shell script to install ESET using SCCM compliance settings on Macs
Discovery Script:
#!/bin/bash
# Rui Qiu’s ESET Script
# V1
# 11012015
FOLDER=/Library/Application\ Support/ESET/esetsif [ -d “$FOLDER” ];
then
echo 1
else
echo 0
fi
Remediation Script:
#!/bin/bash
# Ray Qiu’s ESET Script
# V1
# 11022015
# Download Installer
curl http://xxx.com/tools/eset.zip -o /tmp/eset.zip#Unzip
sudo unzip /tmp/eset.zip -d /tmp# Install
sudo installer -pkg /tmp/eset.mpkg -target /# Remove installer
sudo rm -r /tmp/eset.mpkg
sudo rm /tmp/eset.zip