Mon Nov 15 18:06: Zscaler version installed
Mv: rename /Applications/Zscaler/UninstallApplication.app to /var/Zscaler/UninstallApplication.app: No such file or directory Unzip: cannot find or open zscaler.zip, or. Script result: Mon Nov 15 18:06: Zscaler isn't installedĬurl: try 'curl -help' or 'curl -manual' for more information I am using you r script but I am getting errors like the parameters aren't being passed?
If ] thenĮcho "`date` $app is not trusted, reccomend removing $app"Įcho "`date` $app version $4 trusted, install succesful" # echo "Application Signature $appSignature" # Check signature of installed application to ensure trustedĪppSignature=$( pkgutil -check-signature "$applicationPath" | grep "Status:" | sed 's/^*// s/*$//' ) # Set path to newly installed applicationĪpplicationPath="/Applications/$app/$app.app" Mv /Applications/Zscaler/UninstallApplication.app /var/Zscaler/UninstallApplication.app # Move uninstaller to /var to hide from users Sudo sh /tmp/$installer/Contents/MacOS/installbuilder.sh -cloudName $6 -policyToken $7 -strictEnforcement 1 -unattendedmodeui none -userDomain $8 # Install using correct settings, set these all to variables in jamf
# Set $5 in Jamf to be the download URL for the version desired # set $4 in jamf to be the version number downloading Zscaler-osx-1.5.1.5-installer.app/Contents/MacOS/installbuilder.sh. InstalledVersion=$( defaults read "/Applications/$app/$app.app/Contents/ist" CFBundleShortVersionString )Įcho "`date` Installed version of $app is $installedVersion" You need to put the 5 variable in Jamf which is the download URL from your Zscaler. # Check is Zscaler is installed or not and to show installed version if it is already # last updated by Harry Richman, december 2020 # This uses variables in Jamf in order to easily deploy multiple version, or different enforcements/policys # this will check for application signature, if invalid will remove the application and exit with error # This will download the version of Zscaler specified in the URL and version name fields
Its not totally automated, but its pretty quick to update the links etc. I have a script for Zscaler download and install, it has space for variables to drop in your download link, but thats pretty trivial to get from your Zscaler admin portal.