diff options
author | Menno Duursma <druiloor@zonnet.nl> | 2010-09-17 04:47:13 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-09-21 22:09:37 -0500 |
commit | 3dae1846b0ad71c7528dd955362f6064f837f22a (patch) | |
tree | a30a34ebc2dad614742b42586ca693074049848c /libraries/php-ssh2/doinst.sh | |
parent | 38fb9864c6c14e48193e0a353cbcc848e72ca36b (diff) |
libraries/php-ssh2: Added (SECSH network protocol PHP extention)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/php-ssh2/doinst.sh')
-rw-r--r-- | libraries/php-ssh2/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/php-ssh2/doinst.sh b/libraries/php-ssh2/doinst.sh new file mode 100644 index 0000000000000..b8417cfb61176 --- /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 + |