Skip to content
Snippets Groups Projects
Commit 980320f9 authored by Bob Mottram's avatar Bob Mottram
Browse files

Only copy prosody modules if the directory exists

parent d22c6e76
No related branches found
No related tags found
No related merge requests found
......@@ -815,7 +815,9 @@ 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/
if [ -d $INSTALL_DIR/prosody-modules ]; then
cp -r $INSTALL_DIR/prosody-modules/* /var/lib/prosody/prosody-modules/
fi
chown -R prosody:prosody /var/lib/prosody/prosody-modules
systemctl reload prosody
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment