Try to register after restart
This commit is contained in:
parent
e123a8a2f4
commit
a001b16d76
|
@ -627,14 +627,6 @@ function install_xmpp_main {
|
||||||
fi
|
fi
|
||||||
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
|
function_check configure_firewall_for_xmpp
|
||||||
configure_firewall_for_xmpp
|
configure_firewall_for_xmpp
|
||||||
xmpp_email_headers
|
xmpp_email_headers
|
||||||
|
@ -648,6 +640,14 @@ function install_xmpp_main {
|
||||||
|
|
||||||
systemctl restart prosody
|
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
|
install_completed xmpp_main
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue