Ver Fonte

ssh-agent unit file should cleanup after itself

Casey DeLorme há 4 anos atrás
pai
commit
96fbfae48e
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      install/etc/skel/.config/systemd/user/ssh-agent.service

+ 1 - 0
install/etc/skel/.config/systemd/user/ssh-agent.service

@@ -4,6 +4,7 @@ Description=SSH key agent
 [Service]
 Type=simple
 Environment=SSH_AUTH_SOCK=%h/.ssh/socket
+ExecStartPre=/usr/bin/rm -f $SSH_AUTH_SOCK
 ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
 
 [Install]