Webhook service: allow writes to /etc/caddy

git pull inside the deploy needs to update .git/FETCH_HEAD, but
ProtectSystem=full makes /etc read-only. ReadWritePaths=/etc/caddy
opens just the repo directory.
This commit is contained in:
Claudio
2026-04-20 17:11:39 +02:00
parent b6dec2a894
commit c2a1ab464b

View File

@@ -9,6 +9,7 @@ Restart=on-failure
RestartSec=2 RestartSec=2
User=root User=root
ProtectSystem=full ProtectSystem=full
ReadWritePaths=/etc/caddy
ProtectHome=true ProtectHome=true
NoNewPrivileges=true NoNewPrivileges=true
PrivateTmp=true PrivateTmp=true