mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
add volume prune for the database
This commit is contained in:
parent
4cb8d7312f
commit
2bfd76b73b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user