Posted on 12-19-2018 06:51 PM
Unsure why or how...
Jamf pro 10.8 ...
When the jamf binary is called to install a PKG or MPKG... The jamf binary is downloading it to /Library/Application Support/JAMF/Downloads/ directory. It also breaks the installPKFfromDMG scripts...
This is bad because when one needs to have configuration files beside the PKG, the binary only copies the PKG and causes the installation to fail because the config file is missing.
Anyone else having this issue?
Posted on 12-19-2018 09:10 PM
I'm not really sure what you're asking here. The jamf binary has, to my knowledge, always downloaded pkgs/mpkgs to the
/Library/Application Support/JAMF/Downloads/ directory before installing them. It's been like this forever. It can't install them any other way but to download them first to the local machine.
As far as that breaking installs with configuration files, if you have files that need to be in the same directory as the pkg when the pkg is run, what you need to do is create a folder in a place like /private/tmp/ and drop all your files (pkg(s) and configuration files) into that folder, then take that folder into Composer to build a new package from that source. Add a postinstall script to the pkg that will install the actual package using something like
/usr/sbin/installer -pkg /private/tmp/foldername/packagename.pkg -tgt / as the code to run. This will install the package after it drops it into that directory, along with the config files that should also be in that same folder.
Hope that makes sense. If you need more detailed instructions, post back. There are for sure some existing threads that talk about this method in more detail that can be linked here for you.
Posted on 12-21-2018 04:38 PM
@mm2270 Wow that’s complicated for such a simple thing.
In the end I leveraged a script.