aboutsummaryrefslogtreecommitdiffstats
path: root/community/knot-resolver/knot-resolver.post-upgrade
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-02-23 13:20:34 +0100
committerJakub Jirutka <jakub@jirutka.cz>2020-02-23 14:08:49 +0100
commit716d804c8235305ee07b36908b70272452c1c52c (patch)
tree6bf902a7218e10a29f83dc53fe8f99da438adeb6 /community/knot-resolver/knot-resolver.post-upgrade
parenta2ca4f04ab7820444b83cb61cb601d48a7f783f3 (diff)
downloadaports-716d804c8235305ee07b36908b70272452c1c52c.tar.bz2
aports-716d804c8235305ee07b36908b70272452c1c52c.tar.xz
community/knot-resolver: start kresd as unprivileged user
Diffstat (limited to 'community/knot-resolver/knot-resolver.post-upgrade')
-rw-r--r--community/knot-resolver/knot-resolver.post-upgrade8
1 files changed, 8 insertions, 0 deletions
diff --git a/community/knot-resolver/knot-resolver.post-upgrade b/community/knot-resolver/knot-resolver.post-upgrade
new file mode 100644
index 0000000000..fcb1f09074
--- /dev/null
+++ b/community/knot-resolver/knot-resolver.post-upgrade
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+ver_new="$1"
+ver_old="$2"
+
+if [ "$(apk version -t "$ver_old" "5.0.1-r0")" = "<" ]; then
+ chown -R kresd:kresd /var/cache/knot-resolver
+fi