Hope all is well. I was wondering if it's possible to get some assistance on this issue I came across. I am new to Jamf PRO. My Team Lead gave me an assignment to push Rapid7 automatically to MacOS devices in Jamf Pro. I've watched videos and read documentation but still a bit confused and was wondering if I could get some help.
so in my case I was given a zip file that contained about 9 files. .pem,.crt,.key., etc. I unzipped the file to /tmp. Contained within the file, there were these files
I added the folder to composer. I then created the following postinstall script:
#!/bin/sh ## postinstall ARCH=`/usr/bin/arch` cd /private/tmp/Rapid7 if [[ "$ARCH" == arm64 ]]; then sudo ./agent_installer-arm64.sh install_start --token us:<yourtokenkeyhere> sleep 10 else sudo ./agent_installer-x86_64.sh install_start --token us:<yourtokenkeyhere> sleep 10 rm -rf /private/tmp/Rapid7/* rm -rf /private/tmp/Rapid7*.pkg rm -rf /private/tmp/Rapid7 fi
as always test on a non-prod device, because you should never just implement a script you found online by some random guy..unless its @sdagley . hth