File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33{
44 [ -d ~ /.dnscrypt ] && {
5- rm -vrf ~ /.dnscrypt/
6- }; mkdir -v ~ /.dnscrypt/
5+ rm -vrf ~ /.dnscrypt
6+ mkdir -v ~ /.dnscrypt
7+ }
78
89 curl -L --output - https://github.com/DNSCrypt/dnscrypt-proxy/releases/download/2.1.13/dnscrypt-proxy-linux_x86_64-2.1.13.tar.gz | \
910 tar -xz -C ~ /.dnscrypt
1011
1112 cd ~ /.dnscrypt/ && {
1213 mv -v linux-x86_64/* .
13- rm -vrf linux-x86_64/
14+ rm -vrf linux-x86_64
1415 }
1516
17+ # DnsCrypt config
1618 [ -d ~ /.lib ] && {
1719 ln -sf ~ /.lib/internal/etc/dnscrypt-proxy.toml ~ /.dnscrypt/dnscrypt-proxy.toml
1820 }
21+
22+ # Start DnsCrypt
23+ cd ~ /.dnscrypt && {
24+ # Stop previous instance
25+ sudo systemctl stop dnscrypt-proxy.service
26+
27+ # Install new instance
28+ sudo ./dnscrypt-proxy -service install
29+ sudo ./dnscrypt-proxy -service start
30+ }
1931}
You can’t perform that action at this time.
0 commit comments