Restart prosody before registering an account

This commit is contained in:
Bob Mottram 2014-09-25 14:32:02 +01:00
parent b286617871
commit 840c5d3bbf
1 changed files with 1 additions and 1 deletions

View File

@ -1728,8 +1728,8 @@ function install_xmpp {
sed -i 's/--"bosh";/"bosh";/g' /etc/prosody/prosody.cfg.lua sed -i 's/--"bosh";/"bosh";/g' /etc/prosody/prosody.cfg.lua
sed -i 's/authentication = "internal_plain"/authentication = "internal_hashed"' /etc/prosody/prosody.cfg.lua sed -i 's/authentication = "internal_plain"/authentication = "internal_hashed"' /etc/prosody/prosody.cfg.lua
prosodyctl register $MY_USERNAME $DOMAIN_NAME $XMPP_PASSWORD
service prosody restart service prosody restart
prosodyctl register $MY_USERNAME $DOMAIN_NAME $XMPP_PASSWORD
echo 'Change your XMPP password using:' >> /home/$MY_USERNAME/README echo 'Change your XMPP password using:' >> /home/$MY_USERNAME/README
echo '' >> /home/$MY_USERNAME/README echo '' >> /home/$MY_USERNAME/README
echo " prosodyctl new_password $MY_USERNAME@$DOMAIN_NAME" >> /home/$MY_USERNAME/README echo " prosodyctl new_password $MY_USERNAME@$DOMAIN_NAME" >> /home/$MY_USERNAME/README