ソースを参照

Tests for failure

Bob Mottram 7 年 前
コミット
9a734bcd98
共有1 個のファイルを変更した20 個の追加0 個の削除を含む
  1. 20
    0
      src/freedombone-app-pleroma

+ 20
- 0
src/freedombone-app-pleroma ファイルの表示

@@ -203,8 +203,20 @@ function pleroma_create_database {
203 203
 
204 204
     cd $PLEROMA_DIR
205 205
     mix local.rebar --force
206
+    if [ ! "$?" = "0" ]; then
207
+        echo $'mix local.rebar failed'
208
+        exit 73528562
209
+    fi
206 210
     mix ecto.create --force
211
+    if [ ! "$?" = "0" ]; then
212
+        echo $'mix ecto.create failed'
213
+        exit 83653582
214
+    fi
207 215
     mix ecto.migrate --force
216
+    if [ ! "$?" = "0" ]; then
217
+        echo $'mix ecto.migrate failed'
218
+        exit 73752573
219
+    fi
208 220
 }
209 221
 
210 222
 function reconfigure_pleroma {
@@ -638,7 +650,15 @@ function install_pleroma {
638 650
     # back end
639 651
     cd $PLEROMA_DIR
640 652
     mix local.hex --force
653
+    if [ ! "$?" = "0" ]; then
654
+        echo $'mix local.hex failed'
655
+        exit 1745673
656
+    fi
641 657
     mix deps.get --force
658
+    if [ ! "$?" = "0" ]; then
659
+        echo $'mix deps.get failed'
660
+        exit 7325733
661
+    fi
642 662
 
643 663
     function_check pleroma_create_database
644 664
     pleroma_create_database