From be117bb7cd2da3650b36f0e1cb029fa955939204 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 22 Jan 2025 18:36:34 +0000 Subject: [PATCH] Fixed deleting dns records for bookstack on uninstall --- lib/bookstack.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/bookstack.sh b/lib/bookstack.sh index 3b8238b..b559130 100644 --- a/lib/bookstack.sh +++ b/lib/bookstack.sh @@ -190,7 +190,10 @@ uninstall_bookstack() { docker image rm lscr.io/linuxserver/bookstack:$IMAGE_VERSION &> /dev/null # Delete the DNS record - [[ "${PLUS}" != "true" ]] && docker exec pdns pdnsutil delete-rrset $DOMAIN bookstack A &> /dev/null + if [[ "${PLUS}" != "true" ]]; then + docker exec pdns pdnsutil delete-rrset $DOMAIN bookstack A &> /dev/null + docker exec pdns pdnsutil delete-rrset $DOMAIN documentation A &> /dev/null + fi # Uninstall the SSO configuration if it exists in authelia (authelia must exist too) if [[ $(grep "### Bookstack" /federated/apps/authelia/data/config/idproviders.yml 2>/dev/null) ]]; then