Hi,
I am running Home Assistant Core in a docker on unRAID. The same host also runs a PiHole docker container.
Now I want to add/remove domains from the PiHole blacklist via command line ie:
docker exec -it pihole bash pihole -b --wild cat no-fun.list
There should be a ` around the cat no-fun.list but I can’t make the formatting work
this works from the host, but not from within the HA docker (and it should not work by design)
So here is my question, how can I achieve something like this via automation or script in HA?
Any suggestions are very welcome.
I have some ideas but they are very clunky.
ie: run the command above via corn and use HA to just change the content of the file. (I could mount the file from the host to the HA docker) But to make this effective it would need to run very often, remove the blacklist and add the new one…