瀏覽代碼

Check that mercurial gets installed

Bob Mottram 8 年之前
父節點
當前提交
adeb979c7b
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. 6
    0
      src/freedombone-app-xmpp

+ 6
- 0
src/freedombone-app-xmpp 查看文件

@@ -788,9 +788,15 @@ function install_xmpp_main {
788 788
 
789 789
     apt-get -yq install lua-sec lua-bitop lua5.1 liblua5.1-dev
790 790
     apt-get -yq install libidn11-dev libssl-dev lua-dbi-sqlite3
791
+    rm -rf /tmp/*
791 792
     apt-get -yq mercurial
792 793
     apt-get -yq install prosody
793 794
 
795
+    if [ ! -f /usr/bin/hg ]; then
796
+        echo $"Couldn't install mercurial"
797
+        exit 52825
798
+    fi
799
+
794 800
     if [ ! -d /etc/prosody ]; then
795 801
         echo $"ERROR: prosody does not appear to have installed. $CHECK_MESSAGE"
796 802
         exit 52367