slackbuilds_ponce/system/nss_ldap/doinst.sh
Christopher Walker 0208d4932e system/nss_ldap: Updated for version 265.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2011-12-18 00:07:51 -02:00

12 lines
221 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 etc/ldap.conf.new