diff options
author | Christopher Walker <kris240376@gmail.com> | 2010-05-13 01:00:59 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 01:00:59 +0200 |
commit | b96fb91780d69d898f78e20f69975cde8d3e7c88 (patch) | |
tree | 324ebca23575e5a3602db7444c2dcbe24a10b85b /system/nss_ldap/doinst.sh | |
parent | f5806afd94f14e537102127aeafd6803a8df581e (diff) | |
download | slackbuilds-b96fb91780d69d898f78e20f69975cde8d3e7c88.tar.gz |
system/nss_ldap: Added to 13.0 repository
Diffstat (limited to 'system/nss_ldap/doinst.sh')
-rw-r--r-- | system/nss_ldap/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/system/nss_ldap/doinst.sh b/system/nss_ldap/doinst.sh new file mode 100644 index 0000000000..abd60ac5b6 --- /dev/null +++ b/system/nss_ldap/doinst.sh @@ -0,0 +1,14 @@ +#!/bin/sh +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/ldap.conf.new + |