diff options
author | Eugene Wissner <belka.ew@gmail.com> | 2015-07-22 10:26:56 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-07-22 10:26:56 +0700 |
commit | 1facdd736c831889c0043433474b37c5b93a43d2 (patch) | |
tree | ee9481af7de4653bf7db728c6359f36ebe0402b3 /libraries/ioncube-loader/doinst.sh | |
parent | 075ead623136e5e58ebd1c71e040404458b8ad49 (diff) | |
download | slackbuilds-1facdd736c831889c0043433474b37c5b93a43d2.tar.gz slackbuilds-1facdd736c831889c0043433474b37c5b93a43d2.tar.xz |
libraries/ioncube-loader: Added (Loader for ionCube Secured Files).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/ioncube-loader/doinst.sh')
-rw-r--r-- | libraries/ioncube-loader/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libraries/ioncube-loader/doinst.sh b/libraries/ioncube-loader/doinst.sh new file mode 100644 index 0000000000..7dd6884f39 --- /dev/null +++ b/libraries/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 |