slackbuilds_ponce/libraries/php-pgsql/doinst.sh
Heinz Wiesinger 7ef28ffab8 libraries/php-pgsql: Updated for version 5.4.20 and add pdo_pgsql.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
2013-11-11 15:13:30 -06:00

16 lines
407 B
Bash

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
config etc/php/pdo_pgsql.ini.new