diff options
author | Niels Horn <niels.horn@gmail.com> | 2010-05-13 01:00:07 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 01:00:07 +0200 |
commit | acafd6f8fd72b04dc9277beef3624c689990ac23 (patch) | |
tree | 4bb1ac21e4181f818fbb5148104aee1483f99e20 /network/msn-proxy/doinst.sh | |
parent | 247bdc679964e538cf00e1fe87e31d145bcf343f (diff) | |
download | slackbuilds-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.sh | 17 |
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 + |