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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user