From 11b8701db94897460eb06709597e25a1e8ea14f6 Mon Sep 17 00:00:00 2001 From: Anthony Rabbito Date: Oct 05 2022 23:58:14 +0000 Subject: fix(ssh-agent): remove the socket in ExecStartPre Signed-off-by: Anthony Rabbito --- diff --git a/ssh-agent.service b/ssh-agent.service index 50a9ea1..311f91d 100644 --- a/ssh-agent.service +++ b/ssh-agent.service @@ -9,6 +9,7 @@ Requires=ssh-agent.socket [Service] 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 PassEnvironment=SSH_AGENT_PID SuccessExitStatus=2