1
0
Fork 0

update version to match new features in container

This commit is contained in:
Asif Bacchus 2020-09-14 14:29:33 -06:00
parent 823c7b098c
commit 3c4b743ee3
1 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
# #
### start openldap container using params file variables # start openldap container using params file variables
# version 3.2 # version 4.0
# #
@ -208,7 +208,7 @@ if [ $clean = true ]; then
printf "%sThis action CANNOT be undone!%s\n\n" \ printf "%sThis action CANNOT be undone!%s\n\n" \
"$red" "$norm" "$red" "$norm"
prompt_yn prompt_yn
# get all ab-openldap containers # get all ab-openldap containers
containers=$(docker ps -a --no-trunc --filter "label=org.label-schema.name=ab-openldap" --format "{{ .Names }}") containers=$(docker ps -a --no-trunc --filter "label=org.label-schema.name=ab-openldap" --format "{{ .Names }}")
# check for null value -- no containers to remove # 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 "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" printf "\t%s\n\t%s\n" "$volume_data" "$volume_ldif"
prompt_yn prompt_yn
# delete any conflicting volumes # delete any conflicting volumes
docker volume rm -f ${volume_data} > /dev/null 2>&1 docker volume rm -f ${volume_data} > /dev/null 2>&1
docker volume rm -f ${volume_ldif} > /dev/null 2>&1 docker volume rm -f ${volume_ldif} > /dev/null 2>&1
# run temporary container to merge backup data into volumes # run temporary container to merge backup data into volumes
docker run --rm \ docker run --rm \
-v "$volume_data":/var/openldap/data \ -v "$volume_data":/var/openldap/data \