add volume prune for the database

This commit is contained in:
Daniel Hansson 2020-08-15 00:15:49 +02:00 committed by GitHub
parent 4cb8d7312f
commit 2bfd76b73b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,6 +146,7 @@ if grep ^url "$BITWARDEN_HOME"/bwdata/config.yml | grep -q https || grep ^url "$
then
msg_box "It seems like some of the settings you entered are wrong. We will now remove Bitwarden so that you can start over with the installation."
check_command systemctl stop bitwarden
docker volume prune -f
docker system prune -af
rm -rf "${BITWARDEN_HOME:?}/"bwdata
exit 1
@ -268,7 +269,9 @@ else
# remove settings to be able to start over again
rm -f "$HTTPS_CONF"
last_fail_tls "$SCRIPTS"/apps/tmbitwarden.sh
systemctl stop bitwarden && docker system prune -af
systemctl stop bitwarden
docker volume prune -f
docker system prune -af
rm -rf "${BITWARDEN_HOME:?}/"bwdata
exit 1
fi