summaryrefslogtreecommitdiff
path: root/libraries/php-mssql/doinst.sh
diff options
context:
space:
mode:
authorTrayan Denev <tdenev@gmail.com>2012-12-16 09:10:33 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2012-12-16 09:11:00 +0100
commit87ebbcaed006ad57fc15ba0322bf39db239d74e3 (patch)
treecb2cce63946a742cc1fc5be5d71349c29c8a1950 /libraries/php-mssql/doinst.sh
parent604e4843cf68d2461f6d565b1a6496a669371fc8 (diff)
downloadslackbuilds-87ebbcaed006ad57fc15ba0322bf39db239d74e3.tar.gz
libraries/php-mssql: Added (php MS SQL extension).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/php-mssql/doinst.sh')
-rw-r--r--libraries/php-mssql/doinst.sh14
1 files changed, 14 insertions, 0 deletions
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