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