cluster/services/locksmith: fix path handling in waiting for secrets
This commit is contained in:
parent
72e19de53a
commit
a8041ec87f
1 changed files with 2 additions and 2 deletions
|
@ -32,9 +32,9 @@ in
|
|||
];
|
||||
script = ''
|
||||
for key in ${lib.escapeShellArgs secrets}; do
|
||||
if ! test -e "$key"; then
|
||||
if ! test -e "/run/locksmith/$key"; then
|
||||
echo "Waiting for secret: $key"
|
||||
inotifywait -qq -e create,moved_to --include "$key" /run/locksmith
|
||||
inotifywait -qq -e create,moved_to --include "^/run/locksmith/''${key}$" /run/locksmith
|
||||
fi
|
||||
echo "Heard secret: $key"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue