ncarlier / webhookd

A very simple webhook server launching shell scripts.
MIT License
886 stars 80 forks source link

open /tmp/restart_vpn_containers.sh_2_20240920_2152.txt: permission denied" #106

Closed spupuz closed 3 hours ago

spupuz commented 3 hours ago

i'm trying to use this with uptime kuma and docker to restart docker container.

i got permission denied. i need to restart docker container if i do use webhookd container command line to test the script all is fine but then when i try execute command from my pc:

curl -v -XPOST --header "X-Hook-Mode: chunked" http://192.168.1.xxx:8383/restart_vpn_containers

i got this error

time=2024-09-20T21:52:03.149Z level=ERROR msg="hook executed" hook=restart_vpn_containers.sh id=2 status=error exitCode=0 err="open /tmp/restart_vpn_containers.sh_2_20240920_2152.txt: permission denied" took=0

if i make a test from uptimekuma it says the same.

i use both uptimekuma and webhood container in bridged mode.

do i have to whitelist or enable something to run scripts via webhookd?

any hint or help?

spupuz commented 3 hours ago

solved