Posted on 06-05-2019 03:37 AM
Hello!
I'm trying to deploy the apex one agent to our macbooks through a policy in jamf pro.
At the moment its being done by using a .dmg with the following contents:
- .pkg (installer)
- one folder with subfolder "conf" and a .plist file
as well as this script provided by jamf:
installPKGfromDMG.sh
The scripts works as it should, but unfortunately only the .pkg file is copied and installed when the script is executed. The folders are being ignored - however, these are required for the agent to connect to the server and should be in the same folder as the .pkg when the installation process is happening.
How can I adjust the script or the policy so that this folder is also copied out of the dmg file during installation?
Thanks for your help.
Solved! Go to Solution.
Posted on 06-05-2019 07:36 AM
I've got it to run with the help of you guys. Special thanks to @mack525 and @jhbush1973 !
I used this script as described on this page installing trendmicro...
#!/bin/bash
#Switch to the /tmp directory
cd /tmp
#Download the Trend installer
curl -O -k https://yourserver.com:4343/officescan/console/html/TMSM_HTML/ActiveUpdate/ClientInstall/tmsminstall.zip
#Unzip the installer
unzip tmsminstall.zip
#Install the Trend Software
installer -pkg /tmp/tmsminstall/tmsminstall.pkg -target /
#Clean up the folder
rm tmsminstall.zip
rm -rf /tmp/tmsminstall
exit 0
Thank you all for your help and your time!
Posted on 06-05-2019 04:18 AM
One way you can do is to create a pkg with a post install script that delivers the pkg file and corresponding folders with it.
My method just uses a script that gets the dmg from a path and then installs it using the installer command, seems to have worked fine for years.
Posted on 06-05-2019 05:47 AM
Hi,
I have also been struggling with this one.
I have just been pulling the pkg from the zip file and installing it.
Where on the mac does the conf file and the plist file need to go to.
Posted on 06-05-2019 06:07 AM
@simon.brooke For us it seems to be like this:
/tmsminstall.pkg
/Resources/package_ver.plist
/Resources/conf/broker.pem
/Resources/conf/ServerInfo.plist
Posted on 06-05-2019 07:03 AM
Is this related to the Worry Free editions? I wrote some walkthroughs here Could maybe point you in the right direction..
Posted on 06-05-2019 07:36 AM
I've got it to run with the help of you guys. Special thanks to @mack525 and @jhbush1973 !
I used this script as described on this page installing trendmicro...
#!/bin/bash
#Switch to the /tmp directory
cd /tmp
#Download the Trend installer
curl -O -k https://yourserver.com:4343/officescan/console/html/TMSM_HTML/ActiveUpdate/ClientInstall/tmsminstall.zip
#Unzip the installer
unzip tmsminstall.zip
#Install the Trend Software
installer -pkg /tmp/tmsminstall/tmsminstall.pkg -target /
#Clean up the folder
rm tmsminstall.zip
rm -rf /tmp/tmsminstall
exit 0
Thank you all for your help and your time!
Posted on 06-05-2019 09:13 AM
@rael Glad you got it working
Posted on 12-18-2019 08:32 AM
What would the path be if its cloud hosted?