Selaa lähdekoodia

More checks for failures

Bob Mottram 7 vuotta sitten
vanhempi
commit
63c02d7f20
1 muutettua tiedostoa jossa 11 lisäystä ja 1 poistoa
  1. 11
    1
      src/freedombone-app-koel

+ 11
- 1
src/freedombone-app-koel Näytä tiedosto

@@ -692,8 +692,14 @@ function install_koel {
692 692
             cat /home/$MY_USERNAME/freedombone/image_build/composer_install | php
693 693
         fi
694 694
     fi
695
-    npm install
695
+    npm install -g yarn
696
+    yarn install
697
+    if [ ! "$?" = "0" ]; then
698
+        echo $"Can't install yarn"
699
+        exit 682427
700
+    fi
696 701
     php composer.phar install
702
+    npm install
697 703
 
698 704
     function_check get_mariadb_password
699 705
     get_mariadb_password
@@ -711,6 +717,10 @@ function install_koel {
711 717
     sed -i 's/MAIL_PORT=.*/MAIL_PORT=25/g' .env
712 718
 
713 719
     php artisan koel:init
720
+    if [ ! "$?" = "0" ]; then
721
+        echo $"Can't install koel:init"
722
+        exit 78362
723
+    fi
714 724
     koel_remove_gravatar
715 725
     chown -R www-data:www-data /var/www/$KOEL_DOMAIN_NAME/htdocs
716 726