Explorar o código

ssh-agent unit file should cleanup after itself

Casey DeLorme %!s(int64=4) %!d(string=hai) anos
pai
achega
96fbfae48e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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]