aboutsummaryrefslogtreecommitdiff
path: root/development/ioncube-loader/doinst.sh
diff options
context:
space:
mode:
authorEugene Wissner <belka.ew@gmail.com>2015-09-30 07:55:11 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-09-30 07:55:11 +0700
commit078db85ff8ce38285f3e411a4fa3f0bb79ebb18e (patch)
treeff1e1ec18e1e33384039164ca8c1bf51848067f8 /development/ioncube-loader/doinst.sh
parent222fe84a527343e25f7115e0ac6e93bd42a9a7b5 (diff)
development/ioncube-loader: Updated for version 5.0.18.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/ioncube-loader/doinst.sh')
-rw-r--r--development/ioncube-loader/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/development/ioncube-loader/doinst.sh b/development/ioncube-loader/doinst.sh
new file mode 100644
index 0000000000000..7dd6884f39a82
--- /dev/null
+++ b/development/ioncube-loader/doinst.sh
@@ -0,0 +1,14 @@
+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/20ioncube.ini.new