Skip to content

Commit b382750

Browse files
authored
Merge pull request #205 from marquiz/devel/hook-injector-example
plugins/hook-injector: correct the hook configs
2 parents 27523d0 + 3b1cbdb commit b382750

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/hook-injector/etc/containers/oci/hooks.d/always-inject.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "1.0.0",
33
"hook": {
44
"path": "/usr/local/sbin/demo-hook.sh",
5-
"args": ["this", "hook", "is", "always", "injected"],
5+
"args": ["demo-hook.sh", "this", "hook", "is", "always", "injected"],
66
"env": [
77
"DEMO_HOOK_ALWAYS_INJECTED=true"
88
]

plugins/hook-injector/etc/containers/oci/hooks.d/busybox-inject.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "1.0.0",
33
"hook": {
44
"path": "/usr/local/sbin/demo-hook.sh",
5-
"args": ["this", "is", "injected", "into", "busybox"],
5+
"args": ["demo-hook.sh", "this", "is", "injected", "into", "busybox"],
66
"env": [
77
"DEMO_HOOK_BUSYBOX_INJECTED=true",
88
"DEMO_HOOK_ARGV0=busybox"

0 commit comments

Comments
 (0)