From 3dae1846b0ad71c7528dd955362f6064f837f22a Mon Sep 17 00:00:00 2001 From: Menno Duursma Date: Fri, 17 Sep 2010 04:47:13 -0400 Subject: libraries/php-ssh2: Added (SECSH network protocol PHP extention) Signed-off-by: dsomero --- libraries/php-ssh2/doinst.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libraries/php-ssh2/doinst.sh (limited to 'libraries/php-ssh2/doinst.sh') diff --git a/libraries/php-ssh2/doinst.sh b/libraries/php-ssh2/doinst.sh new file mode 100644 index 0000000000..b8417cfb61 --- /dev/null +++ b/libraries/php-ssh2/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/ssh2.ini.new + -- cgit v1.2.3