Browse Source

Tests for failure

Bob Mottram 7 years ago
parent
commit
9a734bcd98
1 changed files with 20 additions and 0 deletions
  1. 20
    0
      src/freedombone-app-pleroma

+ 20
- 0
src/freedombone-app-pleroma View File

203
 
203
 
204
     cd $PLEROMA_DIR
204
     cd $PLEROMA_DIR
205
     mix local.rebar --force
205
     mix local.rebar --force
206
+    if [ ! "$?" = "0" ]; then
207
+        echo $'mix local.rebar failed'
208
+        exit 73528562
209
+    fi
206
     mix ecto.create --force
210
     mix ecto.create --force
211
+    if [ ! "$?" = "0" ]; then
212
+        echo $'mix ecto.create failed'
213
+        exit 83653582
214
+    fi
207
     mix ecto.migrate --force
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
 function reconfigure_pleroma {
222
 function reconfigure_pleroma {
638
     # back end
650
     # back end
639
     cd $PLEROMA_DIR
651
     cd $PLEROMA_DIR
640
     mix local.hex --force
652
     mix local.hex --force
653
+    if [ ! "$?" = "0" ]; then
654
+        echo $'mix local.hex failed'
655
+        exit 1745673
656
+    fi
641
     mix deps.get --force
657
     mix deps.get --force
658
+    if [ ! "$?" = "0" ]; then
659
+        echo $'mix deps.get failed'
660
+        exit 7325733
661
+    fi
642
 
662
 
643
     function_check pleroma_create_database
663
     function_check pleroma_create_database
644
     pleroma_create_database
664
     pleroma_create_database