Multiple issues with dnscrypt-proxy package/setup-dnscrypt script
There’s a few more issues with dnscrypt-proxy which once ironed out
should allow this setup script to work flawlessly.
I’ve tested via Edge testing repo.
Here’s the short version but if you need more detailed information just let me know:
the package should have “curl” and “sed” packages pulled in as dependencies. These are required for the setup-dnscrypt script to work correctly.
the script incorrectly writes "
" into the config file at /etc/conf.d/dnscrypt-proxy for the values for the “RESOLVER”, “PROVIDER” and “PUBKEY” lines (lines 7 8 and 9). Manually removing the
tags overcomes this problem but we want this fixed package/script side of course.
Oddly (although it works) the script references the conf.d location as “/etc/init.d/../conf.d/dnscrypt-proxy”. Since this works I guess it doesn’t have to be changed…
The dnscrypt-proxy service crashes immediately after start. A quick look at /var/log/dnscryp-proxy/dnscrypt-proxy.log shows “[ERROR] Unable to chroot to [/var/empty]”.
Manually creating the directory with “mkdir -p /var/empty” overcomes this problem and allows the service to start, so this directory needs to be created by the script at runtime.
(from redmine: issue id 3090, created on 2014-06-25, closed on 2014-07-02)