Fixed deleting dns records for bookstack on uninstall

This commit is contained in:
root 2025-01-22 18:36:34 +00:00
parent 6c08a67375
commit be117bb7cd

View File

@ -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