#!/usr/bin/env bash BASEDIR=<%= scope.lookupvar('ldap::params::lp_tmp_dir') %>/acl.d for DOMAIN in `ls -R ${BASEDIR}/*.conf | xargs -n1 basename | awk '{split($0,array,"-")} {print array[1]}' | sort | uniq` do OUTPUT=<%= scope.lookupvar('ldap::params::lp_openldap_conf_dir') %>/domains/${DOMAIN}-acl.conf cat /dev/null > ${OUTPUT} for FILE in `ls -R ${BASEDIR}/${DOMAIN}*.conf` do cat ${FILE} >> ${OUTPUT} done done
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 18706 | jenbottom | Moving some files aroudn to make things less messy and hopefully easier to find | ||
#1 | 18639 | jenbottom |
adding some configs for an OpenLDAP VM (from GitHub) and some more work to helix_setup_basic.sh script. Now the script should put all my sample configs in place, so I just need to login to the VM and subvmit them |