소스 검색

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