Kaynağa Gözat

Cleans created users on purging.

efficient_tiling
damencho 5 yıl önce
ebeveyn
işleme
b894daa9cf
1 değiştirilmiş dosya ile 7 ekleme ve 3 silme
  1. 7
    3
      debian/jitsi-meet-prosody.postrm

+ 7
- 3
debian/jitsi-meet-prosody.postrm Dosyayı Görüntüle

@@ -36,13 +36,17 @@ case "$1" in
36 36
             rm -f /etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua
37 37
             rm -f /etc/prosody/conf.d/$JVB_HOSTNAME.cfg.lua
38 38
 
39
+            JICOFO_AUTH_DOMAIN="auth.$JVB_HOSTNAME"
39 40
             # clean up generated certificates
40 41
             rm -f /etc/prosody/certs/$JVB_HOSTNAME.crt
41 42
             rm -f /etc/prosody/certs/$JVB_HOSTNAME.key
42
-            rm -f /etc/prosody/certs/auth.$JVB_HOSTNAME.crt
43
-            rm -f /etc/prosody/certs/auth.$JVB_HOSTNAME.key
44
-            rm -rf /var/lib/prosody/auth.$JVB_HOSTNAME.*
43
+            rm -f /etc/prosody/certs/$JICOFO_AUTH_DOMAIN.crt
44
+            rm -f /etc/prosody/certs/$JICOFO_AUTH_DOMAIN.key
45
+            rm -rf /var/lib/prosody/$JICOFO_AUTH_DOMAIN.*
45 46
             rm -rf /var/lib/prosody/$JVB_HOSTNAME.*
47
+
48
+            # clean created users
49
+            rm -rf /var/lib/prosody/`echo $JICOFO_AUTH_DOMAIN | sed -e "s/\./%2e/g"`
46 50
         fi
47 51
 
48 52
         # Clear the debconf variable

Loading…
İptal
Kaydet