1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-03 05:18:09 +03:00

test-execute: ExecStop= and friends should not get credentials

See #32583

(cherry picked from commit 60b218e36e)
This commit is contained in:
Mike Yuan 2024-04-30 21:55:05 +08:00 committed by Zbigniew Jędrzejewski-Szmek
parent 8f58652f5e
commit 7da84cc154

View File

@ -5,7 +5,7 @@ Description=Test for SetCredential=
[Service]
ExecStart=sh -x -c 'test "$$(cat %d/test-execute.set-credential)" = "hoge"'
ExecStartPost=sh -x -c 'test "$$(cat %d/test-execute.set-credential)" = "hoge"'
ExecStop=sh -x -c 'test "$$(cat %d/test-execute.set-credential)" = "hoge"'
ExecStopPost=sh -x -c 'test "$$(cat %d/test-execute.set-credential)" = "hoge"'
ExecStop=bash -x -c '[[ ! -v CREDENTIALS_DIRECTORY ]]'
ExecStopPost=bash -x -c '[[ ! -v CREDENTIALS_DIRECTORY ]]'
Type=oneshot
SetCredential=test-execute.set-credential:hoge