From 85b02e88219e06929af25f06ea4922c405889d23 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 13 Mar 2020 20:01:50 -0600 Subject: [PATCH] set vars and switches for removing TLS operation --- ab-openldap/backup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ab-openldap/backup.sh b/ab-openldap/backup.sh index ef9cf74..1486b23 100755 --- a/ab-openldap/backup.sh +++ b/ab-openldap/backup.sh @@ -43,6 +43,7 @@ logfile="$scriptPath/${scriptName%.*}.log" # with '.params' extension encParams="$scriptPath/${scriptName%.*}.params" # backup mode by default +unset removeTLS unset backupFile extract=false decrypt=false @@ -322,6 +323,10 @@ while [ $# -gt 0 ]; do encParams="$2" shift ;; + --removeTLS) + # remove olcTLS entries from cn=config + removeTLS=true + ;; *) printf "%s\nUnknown option: %s\n" "$err" "$1" printf "Use '--help' for valid options.\n\n%s" "$norm" @@ -555,7 +560,7 @@ elif [ $extract = 'false' ]; then exitError 6 'Unable to copy backup archive from container to host.' fi logInfo 'done' - logInfo "Backup file: ${outputLocation%/}/ldap-${fileDate}.tar.gz" + logInfo "Backup file: $outputLocation/ldap-${fileDate}.tar.gz" ## cleanup and log success cleanup