Skip to content

Instantly share code, notes, and snippets.

@wikrie
Last active June 26, 2018 14:49
Show Gist options
  • Save wikrie/094b6ee52769bcb0baf8da5b35ed4541 to your computer and use it in GitHub Desktop.
Save wikrie/094b6ee52769bcb0baf8da5b35ed4541 to your computer and use it in GitHub Desktop.
XMPP ISPCONFIG 3.1 change Metronome to Prosody for Debian Stretch based on Perfect Server
#/bin/bash
// stop metronome service
service metronome stop
// killall existing xmpp instances
killall lua5.1
//disable default starting from metronome
systemctl disable metronome
//remove the init script to ETC folder for backup reason
mv /etc/init.d/metronome /etc/metronome/metronome_initscript.old
// install prosody after updating sources
apt-get update
apt-get install prosody-0.10
//stoping prosody for running some modifications
service prosody stop
//create needed folder and move content from metronome to prosody
mkdir /etc/prosody/hosts
mkdir /etc/prosody/status
mv /etc/metronome/certs/localhost.key /etc/metronome/localhost.key.old
cp -a /etc/metronome/certs/* /etc/prosody/certs
cp -a /etc/metronome/hosts/* /etc/prosody/hosts
cp -a /etc/metronome/status/* /etc/prosody/status
cp /etc/metronome/metronome.cfg.lua /etc/prosody/prosody.cfg.lua
cp /etc/metronome/global.cfg.lua /etc/prosody/global.cfg.lua
// change the word metronome to prosody into the config file
sed -ie "s/metronome/prosody/g" /etc/prosody/prosody.cfg.lua
//copy isp modules
cp -a /usr/lib/metronome/isp-modules/* /usr/lib/prosody/modules
// change owner for the prosody files
chown -R prosody.prosody /etc/prosody
// get and extract the modificated ispconfig files to get it working in the frontend
wget -O /tmp/ispconfig_prosody_files.tgz https://wikrie.de/downloads/ispconfig_prosody_files.tgz
cd /usr/local/ispconfig
tar -xzf /tmp/ispconfig_prosody_files.tgz
// remove some old files which we do not need anymore
rm -f server/conf/metronome*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment