We have a handful of applications that are required to be on our laptops at all times. Currently, we have smart groups set with criteria for the app not being installed and a policy scoped to that group. The downside is it only updates when an automatic inventory update is done every day. Has anyone done something similar that runs more frequently?
Solved
Reinstall applications after removal
Best answer by A_Collins
Most efficient way is to deploy a script to check if app installed something like this
#!/bin/bash
appName="my.app"
#You can also put an array of more than 1 app
if [[ -d "/Applications/$appName" ]]
then
echo "Directory exists. No need to install"
else
echo "Installing $appName"
jamf policy -trigger triggerName
fi
and upload to the client machines to a folder like /private/var/myscripts, then create a launchdaemon and set interval value to 300 so it would run every 5 minutes with no load on the server
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
