From 58c124d1c5beb90c24ba231167d05455c9f3bd0c Mon Sep 17 00:00:00 2001 From: thnkman Date: Sun, 31 Dec 2023 07:01:13 +0100 Subject: network/dnscrypt-proxy: Updated for version 2.1.5 Signed-off-by: Willy Sudiarto Raharjo --- network/dnscrypt-proxy/doinst.sh | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 network/dnscrypt-proxy/doinst.sh (limited to 'network/dnscrypt-proxy/doinst.sh') diff --git a/network/dnscrypt-proxy/doinst.sh b/network/dnscrypt-proxy/doinst.sh deleted file mode 100644 index e264e34a56..0000000000 --- a/network/dnscrypt-proxy/doinst.sh +++ /dev/null @@ -1,27 +0,0 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -preserve_perms() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - if [ -e $OLD ]; then - cp -a $OLD ${NEW}.incoming - cat $NEW > ${NEW}.incoming - mv ${NEW}.incoming $NEW - fi - config $NEW -} - -preserve_perms etc/rc.d/rc.dnscrypt-proxy.new -config etc/default/dnscrypt-proxy.new -config etc/dnscrypt-proxy/dnscrypt-proxy.toml.new -- cgit v1.2.3