Check that mercurial gets installed

This commit is contained in:
Bob Mottram 2017-03-24 19:11:23 +00:00
parent 71a86c7631
commit adeb979c7b
1 changed files with 6 additions and 0 deletions

View File

@ -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 lua-sec lua-bitop lua5.1 liblua5.1-dev
apt-get -yq install libidn11-dev libssl-dev lua-dbi-sqlite3 apt-get -yq install libidn11-dev libssl-dev lua-dbi-sqlite3
rm -rf /tmp/*
apt-get -yq mercurial apt-get -yq mercurial
apt-get -yq install prosody apt-get -yq install prosody
if [ ! -f /usr/bin/hg ]; then
echo $"Couldn't install mercurial"
exit 52825
fi
if [ ! -d /etc/prosody ]; then if [ ! -d /etc/prosody ]; then
echo $"ERROR: prosody does not appear to have installed. $CHECK_MESSAGE" echo $"ERROR: prosody does not appear to have installed. $CHECK_MESSAGE"
exit 52367 exit 52367