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