fix(ssh-agent): remove the socket in ExecStartPre

Signed-off-by: Anthony Rabbito <hello@anthonyrabbito.com>
This commit is contained in:
Anthony Rabbito 2022-09-15 08:46:03 -04:00
parent 9417892cb7
commit 11b8701db9
No known key found for this signature in database

View File

@ -9,6 +9,7 @@ Requires=ssh-agent.socket
[Service] [Service]
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStartPre=/usr/bin/rm -f $SSH_AUTH_SOCK
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
PassEnvironment=SSH_AGENT_PID PassEnvironment=SSH_AGENT_PID
SuccessExitStatus=2 SuccessExitStatus=2