summaryrefslogtreecommitdiff
path: root/development/ming/doinst.sh
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2011-12-18 23:42:06 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-12-18 23:42:06 -0600
commitc0635bf7d859e728617587528725b08899fe661e (patch)
treebece6d0b6fd1f6df40db58c97649f33045eaee70 /development/ming/doinst.sh
parent3f132a963853c73dc830bb2c16642eca4aa3c0f0 (diff)
downloadslackbuilds-c0635bf7d859e728617587528725b08899fe661e.tar.gz
development/ming: Updated for version 0.4.4.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/ming/doinst.sh')
-rw-r--r--development/ming/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/development/ming/doinst.sh b/development/ming/doinst.sh
new file mode 100644
index 0000000000..3f7b1b6cc8
--- /dev/null
+++ b/development/ming/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/php/ming.ini.new
+