slackbuilds_ponce/network/nss-tls/doinst.sh
B. Watson 9a766de5bd
network/nss-tls: Added (dns over https).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2024-01-20 01:00:45 +07:00

12 lines
254 B
Bash

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
rm $NEW
fi
}
config etc/nss-tls.conf.new
config etc/default/nss-tls.new