summaryrefslogtreecommitdiffstats
path: root/network/unbound/doinst.sh
diff options
context:
space:
mode:
author Badchay <badchay@protonmail.com>2022-08-31 03:14:49 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-09-03 17:58:41 +0700
commit3a4f6aafbfb5ac842d45f753803bd423c62b2b5d (patch)
treeded322d36cfb25dc84e2074fc27f03e15551699d /network/unbound/doinst.sh
parent5572cfe17669eed16a534edc03caeef5f250302a (diff)
downloadslackbuilds-3a4f6aafbfb5ac842d45f753803bd423c62b2b5d.tar.gz
slackbuilds-3a4f6aafbfb5ac842d45f753803bd423c62b2b5d.tar.xz
network/unbound: Updated for version 1.16.2. New maintainer.
Old maintainer is AWOL. Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/unbound/doinst.sh')
-rw-r--r--network/unbound/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/network/unbound/doinst.sh b/network/unbound/doinst.sh
index 2914d5783b..71e2910fce 100644
--- a/network/unbound/doinst.sh
+++ b/network/unbound/doinst.sh
@@ -24,3 +24,21 @@ preserve_perms() {
preserve_perms etc/rc.d/rc.unbound.new
config etc/unbound/unbound.conf.new
+
+# MD5SUM d837bf4c42abb7048c90d720a579f829 is a file hash from the previous initscript.
+
+if [ $(md5sum /etc/rc.d/rc.unbound | cut -f 1 -d " ") == "d837bf4c42abb7048c90d720a579f829" ]
+then
+ echo ""
+ echo "Warning! Red Hat style init script detected at /etc/rc.d/rc.unbound !"
+ echo "It's likely from your previous Unbound installation."
+ echo "The init script will probably work just fine but the script has since been rewritten"
+ echo "as of Unbound version 1.16.2 and it's no longer supported by this SlackBuild."
+ echo ""
+ echo "Simply run the following commands to install the new Unbound init script:"
+ echo "# cd /etc/rc.d && mv rc.unbound.new rc.unbound"
+ echo ""
+ echo "...or if you use slackpkg:"
+ echo "# slackpkg new-config"
+ echo ""
+fi