Fixed deleting dns records for bookstack on uninstall
This commit is contained in:
parent
6c08a67375
commit
be117bb7cd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user