Ensure correct prosody modules are loaded

This commit is contained in:
Bob Mottram 2017-07-10 16:36:14 +01:00
parent fdef7c93d7
commit d96d5bcf23
2 changed files with 5 additions and 0 deletions

View File

@ -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
}

View File

@ -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