Hi folks, I installed 7.8 on my RB3011 and got pihole up and running on it. I want to kick off a script in the container when it boots up. Is there a way to trigger this from the router? Basically I’m looking for an equivalent to “docker exec pihole bash -c ‘mycoolscript.sh’”
You can also set the cmd= to the command you want exec’ed too. But that will requires stopping pihole, setting the desired command in the container’s setting, starting, and then clearing out the “exec” cmd before starting again. That does the same thing as the docker exec.
But if pihole has SSH enabled, ssh-exec is likely easier.