From 2f6cc85f4284c880fd978bde0dfb685759db0939 Mon Sep 17 00:00:00 2001 From: David Somero Date: Sat, 14 Aug 2010 08:57:26 -0500 Subject: multimedia/mythplugins: Updated for version 0.23.1. Signed-off-by: Erik Hanson --- multimedia/mythplugins/doinst.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 multimedia/mythplugins/doinst.sh (limited to 'multimedia/mythplugins/doinst.sh') diff --git a/multimedia/mythplugins/doinst.sh b/multimedia/mythplugins/doinst.sh new file mode 100644 index 000000000000..f0cc41aa4c89 --- /dev/null +++ b/multimedia/mythplugins/doinst.sh @@ -0,0 +1,14 @@ +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... +} + +config etc/httpd/extra/mythweb.conf.new -- cgit v1.2.3