Try to register after restart

This commit is contained in:
Bob Mottram 2016-12-03 17:18:19 +00:00
parent e123a8a2f4
commit a001b16d76
1 changed files with 8 additions and 8 deletions

View File

@ -627,14 +627,6 @@ function install_xmpp_main {
fi
fi
prosodyctl register $MY_USERNAME $DEFAULT_DOMAIN_NAME "$XMPP_PASSWORD"
if [ ! "$?" = "0" ]; then
echo $'Unable to register prosody user'
exit 347682
fi
${PROJECT_NAME}-pass -u $MY_USERNAME -a xmpp -p "$XMPP_PASSWORD"
function_check configure_firewall_for_xmpp
configure_firewall_for_xmpp
xmpp_email_headers
@ -648,6 +640,14 @@ function install_xmpp_main {
systemctl restart prosody
prosodyctl register $MY_USERNAME $DEFAULT_DOMAIN_NAME "$XMPP_PASSWORD"
if [ ! "$?" = "0" ]; then
echo $'Unable to register prosody user'
exit 347682
fi
${PROJECT_NAME}-pass -u $MY_USERNAME -a xmpp -p "$XMPP_PASSWORD"
install_completed xmpp_main
}