Closed jrschat closed 2 years ago
For some reason, I only got notified today, thus sorry for the delay.
both your scripts fail because you are running them with sh sh NextDNS.sh sh AdguardTeam.sh
don't know what OS you are running this on, I use latest raspbian, as recommended in the manual.
since they are both bash scripts (first line = #!/bin/bash) you need to run them as such. my bash version: GNU bash, version 5.1.4(1)-release (bash --version)
since you are writing (add entries to the db) you need to run (this is all clearly explained in the manual), assuming you downloaded the scripts in the current directory: sudo ./NextDNS.sh sudo ./AdguardTeam.sh
to ensure it works, I ran both scripts again today, both work as expected.
Doh, I think I remember this from when I set it up the last time. I think what happens is the bash scripts I tend to write are she’ll compliant and will run as shell. I originally ran them with “sudo” and had the same result. Running them as bash corrects the problem and they now run correctly.
Had to rebuild one of my pi's that I use for Pi-Hole today and went to grab the latest versions of these scripts.
Upon running them I receive the following:
and
Any ideas?