From c4b2dcda0cf61d95c191b832c05d52ae5695e0b7 Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Mon, 25 Jun 2012 22:17:51 -0400 Subject: libraries/php-pgsql: Added (PostgreSQL bindings for PHP) Signed-off-by: dsomero --- libraries/php-pgsql/doinst.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libraries/php-pgsql/doinst.sh (limited to 'libraries/php-pgsql/doinst.sh') diff --git a/libraries/php-pgsql/doinst.sh b/libraries/php-pgsql/doinst.sh new file mode 100644 index 0000000000000..1e20fdfdda3e1 --- /dev/null +++ b/libraries/php-pgsql/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/pgsql.ini.new + -- cgit v1.2.3