aboutsummaryrefslogtreecommitdiff
path: root/libraries/php-stomp/doinst.sh
diff options
context:
space:
mode:
authorGiuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>2017-04-19 17:19:47 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-22 08:10:45 +0700
commit5e4d5e3ce284370b7d949ec01e26975d30a6bfa5 (patch)
tree702b0c79ee16c4fd4e5bfe30bae0198c30261afb /libraries/php-stomp/doinst.sh
parent30bc07bbf06b29cc0d5e0fc08928ab4851bdd3d1 (diff)
libraries/php-stomp: Added (Stomp client php extension).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/php-stomp/doinst.sh')
-rw-r--r--libraries/php-stomp/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/php-stomp/doinst.sh b/libraries/php-stomp/doinst.sh
new file mode 100644
index 0000000000000..0bc4ceb74150d
--- /dev/null
+++ b/libraries/php-stomp/doinst.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+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.d/stomp.ini.new