From 87ebbcaed006ad57fc15ba0322bf39db239d74e3 Mon Sep 17 00:00:00 2001 From: Trayan Denev Date: Sun, 16 Dec 2012 09:10:33 +0100 Subject: libraries/php-mssql: Added (php MS SQL extension). Signed-off-by: Matteo Bernardini --- libraries/php-mssql/doinst.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libraries/php-mssql/doinst.sh (limited to 'libraries/php-mssql/doinst.sh') diff --git a/libraries/php-mssql/doinst.sh b/libraries/php-mssql/doinst.sh new file mode 100644 index 0000000000..5504e584cf --- /dev/null +++ b/libraries/php-mssql/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/mssql.ini.new -- cgit v1.2.3