summaryrefslogtreecommitdiffstats
path: root/development/php-pinba/doinst.sh
diff options
context:
space:
mode:
author Heinz Wiesinger <pprkut@liwjatan.at>2012-12-19 20:29:20 +0100
committer Matteo Bernardini <ponce@slackbuilds.org>2012-12-19 20:29:44 +0100
commita942700fb8a338e2f10b86690adb2a3e2bffdffb (patch)
treebdc27963abf8b0098a71e130f03630127d93e8ef /development/php-pinba/doinst.sh
parent46cd683713f8a29863540dd7103e598d320c5eda (diff)
downloadslackbuilds-a942700fb8a338e2f10b86690adb2a3e2bffdffb.tar.gz
slackbuilds-a942700fb8a338e2f10b86690adb2a3e2bffdffb.tar.xz
development/php-pinba: Added (Pinba Statistics Server - PHP part).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/php-pinba/doinst.sh')
-rw-r--r--development/php-pinba/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/development/php-pinba/doinst.sh b/development/php-pinba/doinst.sh
new file mode 100644
index 0000000000..c48bdfd29e
--- /dev/null
+++ b/development/php-pinba/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/pinba.ini.new
+