Skip to content

Commit

Permalink
webdav: Fixed issue
Browse files Browse the repository at this point in the history
closes #378

Fixed issue that prevented the server to start when the socket file
was already present

To update / redeploy:

---
ROLE=webdav ansible-playbook install.yml
---
  • Loading branch information
arodier committed May 9, 2024
1 parent 4c43226 commit 9810648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/webdav/templates/webdav.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ ConditionDirectoryNotEmpty=%h/.config/webdav/

[Service]
Type=forking
ExecStartPre=/usr/bin/rm /var/tmp/webdav-user/%u/socket
ExecStartPre=/usr/bin/rm -f /var/tmp/webdav-user/%u/socket
ExecStart=/usr/sbin/nginx -c %h/.config/webdav/nginx.conf
ExecStop=/usr/bin/rm /var/tmp/webdav-user/%u/socket
ExecStopPost=/usr/bin/rm -f /var/tmp/webdav-user/%u/socket
Restart=on-failure
WorkingDirectory=%h
PrivateTmp=yes
Expand Down

0 comments on commit 9810648

Please sign in to comment.