Skip to content

Instantly share code, notes, and snippets.

@llamafilm
Created July 17, 2024 01:28
Show Gist options
  • Save llamafilm/3ef244f957ae491747ba1c67f8ded228 to your computer and use it in GitHub Desktop.
Save llamafilm/3ef244f957ae491747ba1c67f8ded228 to your computer and use it in GitHub Desktop.
Autopkg recipe that fails when you run it a second time
Identifier: debug
Input:
NAME: telegraf
Process:
- Processor: URLDownloader
Arguments:
url: https://dl.influxdata.com/telegraf/releases/telegraf-1.31.1_darwin_arm64.dmg
- Processor: PkgRootCreator
Arguments:
pkgroot: '%RECIPE_CACHE_DIR%/payload'
pkgdirs:
Applications: '0775'
- Processor: InstallFromDMG
Arguments:
dmg_path: '%RECIPE_CACHE_DIR%/downloads/telegraf-1.31.1_darwin_arm64.dmg'
items_to_copy:
- source_item: Telegraf.app
destination_path: '%RECIPE_CACHE_DIR%/payload/Applications'
download_changed: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment