The installation fails when run via the jamf agent. When I run it via root, or sudo, it succeeds. Seems specific to bigsur as I don't have this problem on 10.14.x. Any suggestions?
Log:
Installing McAfee EPO
bit-64
mktemp: mkdtemp failed on mferFT4AZ: Read-only file system
mkdir: : No such file or directory
Jul 14 11:00:37 installer[74913] <Critical>: PFPkg: No file found at path: /ma.pkg
Jul 14 11:00:37 installer[74913] <Critical>: PFPackage::packageWithURL - can't instantiate package: /ma.pkg
installer: Error - the package path specified was invalid: 'ma.pkg'.
hdiutil: detach failed - No such file or directory
/usr/local/bin/mcafeeEPOinstall.sh: line 76: cd: HOME not set
installing client extension from : /
Install script:
#!/bin/bash
if [ -e /Library/McAfee/cma/scripts/uninstall.sh ]; then
echo Uninstalling old McAfee EPO
/Library/McAfee/cma/scripts/uninstall.sh
fi
echo Installing McAfee EPO
/usr/local/bin/mcafeeEPOinstall.sh -i

