Closed Lonewolf147 closed 10 months ago
That probably should not happen. It cannot find pihole
in path 🤔
Maybe should add more about how and where this is running pihole.
Here's the script in unraid that I'm running
#!/bin/bash
docker exec pihole /bin/bash
sudo python3 /opt/whitelist/scripts/whitelist.py
I just have it set to run once a week.
@Lonewolf147 try instead docker exec -it
https://docs.docker.com/engine/reference/commandline/exec/#run-docker-exec-on-a-running-container
You might be running the last line on unraid itself?
Now my problem has changed a bit. Now it won't even run because when the scripts drops down into the pihole bash, it no longer recognizes the Python3 command. If I drop down into root, then python can't find the Whitelist.py script (I just have no idea where things created in the dockers is located via root).
EDIT: Messing around, I finally found a way to get it to run. I changed my script to this command
#!/bin/bash
cd ..
sudo python3 whitelist/scripts/whitelist.py --dir ./mnt/user/appdata/pihole/pihole/ --docker
I have pihole up and running, i've tried to set up the auto updater, and when the whitelist.py script runs, this is the return that I'm getting:
Is everything listed after the Traceback correct? Why is there a filenotfounderror?
Thanks