particle-os-modules/modules/script/module.yml
bri 5cd482353b
modules/script: fix path in example comment (#421)
We moved from /config to /files a long time ago. This fixes the comment in the example to say `/files/scripts` instead of `/config/scripts`.
2025-07-12 14:32:17 -04:00

9 lines
466 B
YAML

name: script
shortdesc: The script module can be used to run arbitrary bash snippets and scripts at image build time.
example: |
type: script
snippets:
- "curl https://example.com/examplebinary > /usr/bin/examplebinary" # example: download binary
- "ln -sf /usr/bin/ld.bfd /etc/alternatives/ld && ln -sf /etc/alternatives/ld /usr/bin/ld" # example: ld alternatives symlink workaround
scripts:
- myscript.sh # example: run files/scripts/myscript.sh