From b894daa9cfe0f3044f20e1991ebbf370fd786597 Mon Sep 17 00:00:00 2001 From: damencho Date: Mon, 30 Mar 2020 17:31:13 -0500 Subject: [PATCH] Cleans created users on purging. --- debian/jitsi-meet-prosody.postrm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/jitsi-meet-prosody.postrm b/debian/jitsi-meet-prosody.postrm index 38ad66d5e..e5090ad7a 100644 --- a/debian/jitsi-meet-prosody.postrm +++ b/debian/jitsi-meet-prosody.postrm @@ -36,13 +36,17 @@ case "$1" in rm -f /etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua rm -f /etc/prosody/conf.d/$JVB_HOSTNAME.cfg.lua + JICOFO_AUTH_DOMAIN="auth.$JVB_HOSTNAME" # clean up generated certificates rm -f /etc/prosody/certs/$JVB_HOSTNAME.crt rm -f /etc/prosody/certs/$JVB_HOSTNAME.key - rm -f /etc/prosody/certs/auth.$JVB_HOSTNAME.crt - rm -f /etc/prosody/certs/auth.$JVB_HOSTNAME.key - rm -rf /var/lib/prosody/auth.$JVB_HOSTNAME.* + rm -f /etc/prosody/certs/$JICOFO_AUTH_DOMAIN.crt + rm -f /etc/prosody/certs/$JICOFO_AUTH_DOMAIN.key + rm -rf /var/lib/prosody/$JICOFO_AUTH_DOMAIN.* rm -rf /var/lib/prosody/$JVB_HOSTNAME.* + + # clean created users + rm -rf /var/lib/prosody/`echo $JICOFO_AUTH_DOMAIN | sed -e "s/\./%2e/g"` fi # Clear the debconf variable