mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Show error messages from xmpp-setup and xmpp-register.
Avoid causing plinth to show error page.
This commit is contained in:
1 parent
9d6e17660d
commit
ac0f0c9eba
3 files changed
+12
-5
No files matched your search
@@ -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
@@ -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
|
||||
Reference in new issue
Block a user