diff options
author | Marcel Saegebarth <marc@mos6581.de> | 2015-09-24 09:44:32 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-09-24 09:46:16 +0700 |
commit | caf5530cd71d32df583b13e39f20f3166c656cda (patch) | |
tree | f76ad4e4c727b5d53dae9ce97d4e78803205ef26 /libraries/php-memcached/doinst.sh | |
parent | 22403584390bfdeee45fc3b917f20b6659ae9e29 (diff) | |
download | slackbuilds-caf5530cd71d32df583b13e39f20f3166c656cda.tar.gz |
libraries/php-memcached: Added (PHP extension for memcached).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/php-memcached/doinst.sh')
-rw-r--r-- | libraries/php-memcached/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libraries/php-memcached/doinst.sh b/libraries/php-memcached/doinst.sh new file mode 100644 index 0000000000..320ae2b528 --- /dev/null +++ b/libraries/php-memcached/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/memcached.ini.new |