diff --git a/src/freedombone-app-xmpp b/src/freedombone-app-xmpp index c493c939..f1ef59e6 100755 --- a/src/freedombone-app-xmpp +++ b/src/freedombone-app-xmpp @@ -320,6 +320,9 @@ function update_prosody_modules { tar -xzvf $prosody_modules_filename if [ -d prosody-modules ]; then systemctl stop prosody + if [ ! -d /var/lib/prosody/prosody-modules ]; then + mkdir /var/lib/prosody/prosody-modules + fi cp -r prosody-modules/* /var/lib/prosody/prosody-modules chown -R prosody:prosody /var/lib/prosody/prosody-modules systemctl start prosody @@ -876,6 +879,9 @@ function install_xmpp_main { # install modules update_prosody_modules initial + if [ ! -d /var/lib/prosody/prosody-modules ]; then + echo $'No prosody modules available' + fi # create a certificate if [[ "$(cert_exists ${DEFAULT_DOMAIN_NAME} pem)" == "0" ]]; then