install-eg.sh: LDAP config
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Sat, 6 Apr 2019 00:49:23 +0000 (17:49 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Sat, 6 Apr 2019 00:49:23 +0000 (17:49 -0700)
deployment/install-eg.sh

index a8e61aa..b03ef93 100755 (executable)
@@ -206,6 +206,11 @@ if [[ -c "$CRONTAB" ]]; then
   fi
 fi
 
+# LDAP config
+if ! `diff ${SITKACONF}/files/etc/ldap/ldap.conf/${HOSTNAME} /etc/ldap/ldap.conf >/dev/null` ; then
+    cp -b --suffix=.`date +%Y-%m-%d-%H%M%S` ${SITKACONF}/files/etc/ldap/ldap.conf/${HOSTNAME} /etc/ldap/ldap.conf
+fi
+
 # set up log rotation
 if [[ ! -n "$PROD" ]] ; then
   if [ ! -f "/etc/logrotate.d/evergreen" ]