slackbuilds_ponce/development/ming/doinst.sh
Heinz Wiesinger 4b3ed89bcf development/ming: Updated for version 0.4.8.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
2017-06-06 07:56:53 +07:00

15 lines
376 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.d/ming.ini.new