From 3c4b743ee3949b7682236821c2e1b12338765c75 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 14 Sep 2020 14:29:33 -0600 Subject: [PATCH] update version to match new features in container --- ab-openldap/ab-openldap.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ab-openldap/ab-openldap.sh b/ab-openldap/ab-openldap.sh index 186a12b..a262c7a 100755 --- a/ab-openldap/ab-openldap.sh +++ b/ab-openldap/ab-openldap.sh @@ -1,8 +1,8 @@ #!/bin/sh # -### start openldap container using params file variables -# version 3.2 +# start openldap container using params file variables +# version 4.0 # @@ -208,7 +208,7 @@ if [ $clean = true ]; then printf "%sThis action CANNOT be undone!%s\n\n" \ "$red" "$norm" prompt_yn - + # get all ab-openldap containers containers=$(docker ps -a --no-trunc --filter "label=org.label-schema.name=ab-openldap" --format "{{ .Names }}") # check for null value -- no containers to remove @@ -247,11 +247,11 @@ elif [ $restore = true ]; then printf "To avoid errors due to existing files, this script will delete any volumes that have the following names (based on --data and --ldif):\n" printf "\t%s\n\t%s\n" "$volume_data" "$volume_ldif" prompt_yn - + # delete any conflicting volumes docker volume rm -f ${volume_data} > /dev/null 2>&1 docker volume rm -f ${volume_ldif} > /dev/null 2>&1 - + # run temporary container to merge backup data into volumes docker run --rm \ -v "$volume_data":/var/openldap/data \