aboutsummaryrefslogtreecommitdiff
path: root/multimedia/minidlna/doinst.sh
diff options
context:
space:
mode:
authorMario Preksavec <mario@slackware.hr>2023-01-13 01:32:25 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-14 08:50:38 +0700
commitaad704cbde329eb131fee970ab93416a1cb17439 (patch)
tree15eadef7830190caf8ac3c6a0e8914721f0bd77d /multimedia/minidlna/doinst.sh
parentd911f2d256dfb75a95dc5aa2ef615587a0ed5948 (diff)
multimedia/minidlna: Updated for version 1.3.2.
Signed-off-by: Mario Preksavec <mario@slackware.hr> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/minidlna/doinst.sh')
-rw-r--r--multimedia/minidlna/doinst.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/multimedia/minidlna/doinst.sh b/multimedia/minidlna/doinst.sh
index 7626d3a507e46..15f3e3fff1b78 100644
--- a/multimedia/minidlna/doinst.sh
+++ b/multimedia/minidlna/doinst.sh
@@ -11,4 +11,17 @@ config() {
# 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
+ mv ${NEW} ${OLD}
+}
+
+preserve_perms etc/rc.d/rc.minidlna.new
config etc/minidlna.conf.new
+config etc/logrotate.d/minidlna.new