slackbuilds_ponce/network/cicb/doinst.sh
B. Watson e27dc891e2
network/cicb: Updated for version 5.2.0b1+git20170501.
Signed-off-by: B. Watson <yalhcru@gmail.com>
2018-06-30 07:00:17 +07:00

12 lines
272 B
Bash

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
rm $NEW
fi
}
config usr/share/cicb/system.icbrc.new
config usr/share/cicb/icbserverdb.new