Browse Source

More checks for failures

Bob Mottram 7 years ago
parent
commit
63c02d7f20
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      src/freedombone-app-koel

+ 11
- 1
src/freedombone-app-koel View File

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