mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00:00
test: new test, verify pre:post: scripts with optional env:file
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
e2d1930e6c
commit
561387ce57
6 files changed
+130
-16
No files matched your search
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
marker="POST"
|
||||
# shellcheck disable=SC2154
|
||||
if [ -n "$baz" ]; then
|
||||
marker=$baz
|
||||
fi
|
||||
|
||||
echo "$marker" > /tmp/post
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
marker="PRE"
|
||||
# shellcheck disable=SC2154
|
||||
if [ -n "$foo" ]; then
|
||||
marker=$foo
|
||||
fi
|
||||
|
||||
echo "$marker" > /tmp/pre
|
||||
@@ -0,0 +1,5 @@
|
||||
# Some environments to be sourced by Finit services
|
||||
# and their pre:- and post:scripts
|
||||
|
||||
foo=bar
|
||||
baz=qux
|
||||
Reference in new issue
Block a user