diff options
author | mario <mario@slackverse.org> | 2013-01-05 16:53:00 +0100 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2013-01-09 18:52:21 -0500 |
commit | 3a309f52b82cf2c3e86f5ccf8bbbaeeb5f022e89 (patch) | |
tree | fd334c055804cb29410b571ffb2f24c289e4c791 /libraries/php-memcache/doinst.sh | |
parent | 1597bcaae99154f1cb8c763cd5a17699151b2f14 (diff) |
libraries/php-memcache: Added (Memcached bindings for PHP).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/php-memcache/doinst.sh')
-rw-r--r-- | libraries/php-memcache/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/php-memcache/doinst.sh b/libraries/php-memcache/doinst.sh new file mode 100644 index 000000000000..6996948b3232 --- /dev/null +++ b/libraries/php-memcache/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/memcache.ini.new + |