|
@@ -28,6 +28,15 @@ case "$1" in
|
28
|
28
|
# loading debconf
|
29
|
29
|
. /usr/share/debconf/confmodule
|
30
|
30
|
|
|
31
|
+ # detect dpkg-reconfigure, just delete old links
|
|
32
|
+ db_get jitsi-meet/jvb-hostname
|
|
33
|
+ JVB_HOSTNAME_OLD=$RET
|
|
34
|
+ if [ -n "$RET" ] && [ ! "$JVB_HOSTNAME_OLD" = "$JVB_HOSTNAME" ] ; then
|
|
35
|
+ rm -f /etc/prosody/conf.d/$JVB_HOSTNAME_OLD.cfg.lua
|
|
36
|
+ rm -f /etc/prosody/certs/$JVB_HOSTNAME_OLD.key
|
|
37
|
+ rm -f /etc/prosody/certs/$JVB_HOSTNAME_OLD.crt
|
|
38
|
+ fi
|
|
39
|
+
|
31
|
40
|
# stores the hostname so we will reuse it later, like in purge
|
32
|
41
|
db_set jitsi-meet-prosody/jvb-hostname $JVB_HOSTNAME
|
33
|
42
|
|