Before writing a custom bash script to deploy your app, please note that
However, a custom bash script can also be a great option for deploying apps that have standard
.pkg files and do not require KEXT (kernel extension whitelisting). To do this:
1. Host your .pkg file on a cloud service.
2. Write a script that downloads/installs the .pkg.
3. Log into the Fleetsmith Admin Console, and use the "Custom Bash Script" tool (offered in the Catalog) to deploy it.
Here's an example script that would download and install a .
pkg file. Please modify it to your specific needs.
⚡️ IMPORTANT! ⚡️ Custom scripts are powerful tools. Make sure to extensively test your script in a safe, isolated environment, and deploy only the final production version via Fleetsmith.
# Note, this script is an example of how to download and install
# custom installer packages. The example uses a pkg installer; DMGs
# or other formats would require modifying the script below.
# For production use, you'll want to ensure you add authentication,
# consistency checking, signature verification, error handling, etc.
# download package
/usr/bin/curl -L $remote_pkg -o $local_pkg
# install package
/usr/sbin/installer -target / -pkg $local_pkg