From adeb979c7bdf2cc25064d824bc62888de902fb6f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 24 Mar 2017 19:11:23 +0000 Subject: [PATCH] Check that mercurial gets installed --- src/freedombone-app-xmpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedombone-app-xmpp b/src/freedombone-app-xmpp index 0db02890..83c66eb9 100755 --- a/src/freedombone-app-xmpp +++ b/src/freedombone-app-xmpp @@ -788,9 +788,15 @@ function install_xmpp_main { apt-get -yq install lua-sec lua-bitop lua5.1 liblua5.1-dev apt-get -yq install libidn11-dev libssl-dev lua-dbi-sqlite3 + rm -rf /tmp/* apt-get -yq mercurial apt-get -yq install prosody + if [ ! -f /usr/bin/hg ]; then + echo $"Couldn't install mercurial" + exit 52825 + fi + if [ ! -d /etc/prosody ]; then echo $"ERROR: prosody does not appear to have installed. $CHECK_MESSAGE" exit 52367