diff --git a/src/freedombone-app-xmpp b/src/freedombone-app-xmpp
index 0f806f52e3b47e7514598a090a8da7bb1a533ce6..2ae11a3bbce7117e0c6cf4f93398bbe39ab86f78 100755
--- a/src/freedombone-app-xmpp
+++ b/src/freedombone-app-xmpp
@@ -433,6 +433,9 @@ function upgrade_xmpp {
         set_completion_param "prosody_filename" "${prosody_filename}"
     fi
 
+    cp -r $INSTALL_DIR/prosody-modules/* /var/lib/prosody/prosody-modules/
+    chown -R prosody:prosody /var/lib/prosody/prosody-modules
+
     systemctl restart prosody
 }
 
diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web
index 77b8d0a6c3967d555d7107c72c31e926c59ab6ca..02feff85eca14bfee9c2c011b8d2ca7d33b6f6ae 100755
--- a/src/freedombone-utils-web
+++ b/src/freedombone-utils-web
@@ -782,6 +782,8 @@ function update_default_domain {
             chown -R prosody:default /etc/prosody
             chmod -R 700 /etc/prosody/certs/*
             chmod 600 /etc/prosody/prosody.cfg.lua
+            cp -r $INSTALL_DIR/prosody-modules/* /var/lib/prosody/prosody-modules/
+            chown -R prosody:prosody /var/lib/prosody/prosody-modules
             systemctl reload prosody
         fi