summaryrefslogtreecommitdiff
path: root/network/msn-proxy/doinst.sh
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-05-13 01:00:07 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 01:00:07 +0200
commitacafd6f8fd72b04dc9277beef3624c689990ac23 (patch)
tree4bb1ac21e4181f818fbb5148104aee1483f99e20 /network/msn-proxy/doinst.sh
parent247bdc679964e538cf00e1fe87e31d145bcf343f (diff)
downloadslackbuilds-acafd6f8fd72b04dc9277beef3624c689990ac23.tar.gz
network/msn-proxy: Added to 13.0 repository
Diffstat (limited to 'network/msn-proxy/doinst.sh')
-rw-r--r--network/msn-proxy/doinst.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/network/msn-proxy/doinst.sh b/network/msn-proxy/doinst.sh
new file mode 100644
index 0000000000..4431a61b7c
--- /dev/null
+++ b/network/msn-proxy/doinst.sh
@@ -0,0 +1,17 @@
+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/msn-proxy/msn-proxy.conf.new
+config etc/msn-proxy/mysql/conf.new
+config etc/msn-proxy/mysql.inc.php.new
+