Show error messages from xmpp-setup and xmpp-register.

Avoid causing plinth to show error page.
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2014-11-30 15:23:25 +05:30
1 parent 9d6e17660d
commit ac0f0c9eba
3 files changed
+12 -5

No files matched your search

+1 -1
View File
@@ -16,4 +16,4 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
ejabberdctl register "$1" `hostname` "$2"
ejabberdctl register "$1" `hostname` "$2" || echo "Failed to register XMPP account."
+1 -1
View File
@@ -58,5 +58,5 @@ if [ "$xmpp_inband_enable" != "$xmpp_inband_enable_cur" ] ; then
else
sed -i s/"ip_access: all"/"ip_access: trusted_network"/ /etc/ejabberd/ejabberd.yml
fi
ejabberdctl restart
ejabberdctl restart || echo "Failed to restart ejabberd with new configuration."
fi