particle-os-modules/modules/script/module.yml

9 lines
467 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 config/scripts/myscript.sh