slackbuilds_ponce/network/zarafa-webaccess-ajax/doinst.sh
Niels Horn 29c2f4c373 network/zarafa-webaccess-ajax: Added (Zarafa web access module)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2010-06-12 22:14:27 -05:00

13 lines
348 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...
}