dbfileupload.sh --jss someserver --user username --pass password --pkg /path/to/pkg.pkg
(don't include https://
or .jamfcloud.com
)
Description: | | |
Downloads the latest version of Firefox and makes a pkg. Then, uploads the package to the Jamf Pro Server and creates a Self Service Policy and Smart Group. | |
Identifier: com.example.jamf.Firefox | |
MinimumVersion: "2.3" | |
ParentRecipe: com.github.autopkg.pkg.Firefox_EN | |
Input: | |
NAME: Firefox | |
CATEGORY: Productivity | |
GROUP_NAME: "%NAME%-update-smart" |
<policy> | |
<general> | |
<name>Install Latest %PROD_NAME%</name> | |
<enabled>true</enabled> | |
<frequency>Ongoing</frequency> | |
<category> | |
<name>%POLICY_CATEGORY%</name> | |
</category> | |
</general> | |
<scope> |
<computer_group> | |
<name>%group_name%</name> | |
<is_smart>true</is_smart> | |
<criteria> | |
<criterion> | |
<name>Application Title</name> | |
<priority>0</priority> | |
<and_or>and</and_or> | |
<search_type>is</search_type> | |
<value>%JSS_INVENTORY_NAME%</value> |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Description</key> | |
<string>Downloads Firefox disk image and builds a package, then uploads to the JSS..</string> | |
<key>Identifier</key> | |
<string>com.example.jss.Firefox</string> | |
<key>Input</key> | |
<dict> |
Description: | | |
Downloads Firefox disk image and builds a package, then uploads to the JSS. | |
Identifier: com.example.jss.Firefox | |
ParentRecipe: com.github.autopkg.pkg.Firefox_EN | |
MinimumVersion: "2.3" | |
Input: | |
NAME: Firefox | |
CATEGORY: Productivity | |
GROUP_NAME: "%NAME%-update-smart" |
#!/bin/bash | |
# Jamf Cloud URL and credentials | |
url="https://somecompany.jamfcloud.com" | |
user=SOMEUSER | |
pass=SOMEPASSWORD | |
# path to the package to be uploaded | |
pkg_path="/path/to/somepackage.pkg" |
#!/bin/bash | |
: <<DOC | |
https://docs.jamf.com/technical-articles/Mitigating_the_Apache_Log4j_2_Vulnerability.html | |
deletes: | |
/usr/share/tomcat8/webapps/*/WEB-INF/lib/log4j-1.2-api-2.13.3.jar | |
/usr/share/tomcat8/webapps/*/WEB-INF/lib/log4j-api-2.13.3.jar | |
/usr/share/tomcat8/webapps/*/WEB-INF/lib/log4j-core-2.13.3.jar | |
/usr/share/tomcat8/webapps/*/WEB-INF/lib/log4j-slf4j-impl-2.13.3.jar |
#!/bin/bash | |
# | |
# AutoPkg verify trust of existing recipes | |
# by Graham Pugh | |
# server name, used as the username in Slack | |
server="$1" | |
# slack webhook, e.g. https://hooks.slack.com/services/ASBCDSDAD/SDFGASDF/SDFAvSDfASDFvsdfA | |
slack_webhook_url="$2" |
#!/bin/bash | |
## Privileges time-limited elevation | |
## v. 0.1 - G. Pugh 2020-05-20 | |
# Sets admin privileges for defined number of minutes | |
duration_minutes=$4 | |
# Privileges installer policy trigger name | |
policy_trigger_name="Privileges-install" |