cluster/services/locksmith: fix path handling in waiting for secrets

This commit is contained in:
Max Headroom 2024-07-10 23:50:31 +02:00
parent 72e19de53a
commit a8041ec87f

View file

@ -32,9 +32,9 @@ in
]; ];
script = '' script = ''
for key in ${lib.escapeShellArgs secrets}; do for key in ${lib.escapeShellArgs secrets}; do
if ! test -e "$key"; then if ! test -e "/run/locksmith/$key"; then
echo "Waiting for secret: $key" 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 fi
echo "Heard secret: $key" echo "Heard secret: $key"
done done