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

Removing prosody

parent d38a3072
No related branches found
No related tags found
No related merge requests found
......@@ -334,6 +334,9 @@ function update_prosody_modules {
cp -r $INSTALL_DIR/prosody-modules/* /var/lib/prosody/prosody-modules/
chown -R prosody:prosody /var/lib/prosody/prosody-modules
systemctl start prosody
else
echo $'Prosody modules not extracted'
exit 72524
fi
fi
fi
......@@ -505,6 +508,12 @@ function remove_xmpp {
remove_onion_service xmpp 5222 5223 5269
apt-get -yq remove --purge prosody
if [ ! -f $INSTALL_DIR/$prosody_modules_filename ]; then
rm $INSTALL_DIR/$prosody_modules_filename
fi
if [ ! -d $INSTALL_DIR/prosody-modules ]; then
rm -rf $INSTALL_DIR/prosody-modules
fi
if [ -d /etc/prosody ]; then
rm -rf /etc/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