Closed koninginsamira closed 7 months ago
Hi, I'm facing the same issue.
I manage to make it working, by creating a reco.sh file with
curl -X PUT --fail --silent --show-error http://localhost:8000/v1/openvpn/status -H "Content-Type: application/json" -d '{"status":"stopped"}' curl -X PUT --fail --silent --show-error http://localhost:8000/v1/openvpn/status -H "Content-Type: application/json" -d '{"status":"running"}'
do a chmod 755 thru docker exec
and inside JDownloader use external script with /bin/sh interpreter
Yeah, that seems to be the way to go. See https://github.com/jlesage/docker-jdownloader-2/issues/177#issuecomment-1811082726
Thank you so much! It works like a charm now :)
Current Behavior
I've been trying to get JDownloader to reset my VPN connection when it has to reconnect, but it doesn't seem to work. Maybe I'm just misunderstanding something, but I feel like it should work like this.
Through the interface I've added the following batch script to the general reconnect options:
curl -X PUT -H "Content-Type: application/json" -d '{"status":"stopped"}' "http://localhost:8001/v1/openvpn/status"
I've added the necessary packages through the environment variables, and the script does work when I run it inside the container, but it doesn't seem to do anything when I let JDownloader test it. There is also no extra information when I enable the container debugging variable.I'm running the container using Docker Desktop 24.0.7 on Ubuntu 23.04 (x86-64)
Expected Behavior
I expect the curl request to be executed and my VPN to be reset. I know the command is correct, but I'm not sure if it's actually being run.
Steps To Reproduce
curl -X PUT -H "Content-Type: application/json" -d '{"status":"stopped"}' "http://localhost:8001/v1/openvpn/status"
Environment
Container creation
Container log
Container inspect
Anything else?
No response