Open pubkey opened 3 years ago
Are you sure that this is a fix?
Because you'll get an empty config for privoxy
this way. It fixes the build itself, but breaks the behavior of the original image.
It works for me at least. I mean, without the fix it does not even start up. With the fix, it creates the file, and it still runs the following sed commands to fill it.
With the fix, it creates the file, and it still runs the following sed commands to fill it.
They're not filling the file. Did you check it's content after the build?
/ # du -sh /etc/privoxy/config
0 /etc/privoxy/config
/ # cat /etc/privoxy/config | wc -m
0
When doing a full build from the![error](https://user-images.githubusercontent.com/8926560/115819119-7ed76c80-a3fe-11eb-9818-fb846cadacaf.png)
Dockerfile
in the repo, I got this error because theRUN
command tries to runsed
on a file that does not exist.This commit ensures that the privoxy config file exists, before working with it.