diff options
author | David Somero <dsomero@hotmail.com> | 2010-08-14 08:57:26 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-08-14 19:04:50 -0500 |
commit | 2f6cc85f4284c880fd978bde0dfb685759db0939 (patch) | |
tree | 23d5736e816d7dec685329a0302e63da0262f809 /multimedia/mythplugins/doinst.sh | |
parent | 52fb5c6ea23189ffaaf031b646b4e0d11bb54ab6 (diff) | |
download | slackbuilds-2f6cc85f4284c880fd978bde0dfb685759db0939.tar.gz |
multimedia/mythplugins: Updated for version 0.23.1.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'multimedia/mythplugins/doinst.sh')
-rw-r--r-- | multimedia/mythplugins/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/multimedia/mythplugins/doinst.sh b/multimedia/mythplugins/doinst.sh new file mode 100644 index 0000000000..f0cc41aa4c --- /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 |