update version to match new features in container
This commit is contained in:
parent
823c7b098c
commit
3c4b743ee3
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user