diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2013-02-10 10:59:53 -0500 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2013-02-13 19:33:48 -0500 |
commit | 657dff668d87fe8346f3825f843a770ce4a0c311 (patch) | |
tree | 0661e9eb0febbe7f104e2bb598ba144f9f794bfc /network/mod_dnssd/doinst.sh | |
parent | d4355726d10c51c4670c0566d9cf37a780220de2 (diff) | |
download | slackbuilds-657dff668d87fe8346f3825f843a770ce4a0c311.tar.gz |
network/mod_dnssd: Added (dns-sd/zeroconf/avahi module for httpd)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/mod_dnssd/doinst.sh')
-rw-r--r-- | network/mod_dnssd/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/mod_dnssd/doinst.sh b/network/mod_dnssd/doinst.sh new file mode 100644 index 0000000000..5fffb1c873 --- /dev/null +++ b/network/mod_dnssd/doinst.sh @@ -0,0 +1,15 @@ +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/mod_dnssd.conf.new + |