From c1e9a04bd95f45111ee42974a88f0ec680848af6 Mon Sep 17 00:00:00 2001 From: Jean 28518 Date: Wed, 24 Apr 2024 21:23:36 +0200 Subject: [PATCH] Add andvanced addon removal --- docs/modules/addons.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/modules/addons.rst b/docs/modules/addons.rst index 8856f0b..243e142 100644 --- a/docs/modules/addons.rst +++ b/docs/modules/addons.rst @@ -186,8 +186,13 @@ An example of remove_nocodb.sh would be: # This script gets three variables passed: $DOMAIN, $ADMIN_PASSWORD, $IP, $LDAP_DC docker-compose -f /root/nocodb/docker-compose.yml down --volumes rm -rf /root/nocodb + + # Remove the entry from the Caddyfile sed -i "/db.$DOMAIN {/,/}/d" /etc/caddy/Caddyfile + # On more complicated entries you can also use: + # python3 /usr/share/linux-arbeitsplatz/unix/unix_scripts/remove_caddy_service.py db.$DOMAIN + systemctl restart caddy