More checks for failures

This commit is contained in:
Bob Mottram 2017-06-08 17:18:50 +01:00
parent acdb930a07
commit 63c02d7f20
1 changed files with 11 additions and 1 deletions

View File

@ -692,8 +692,14 @@ function install_koel {
cat /home/$MY_USERNAME/freedombone/image_build/composer_install | php
fi
fi
npm install
npm install -g yarn
yarn install
if [ ! "$?" = "0" ]; then
echo $"Can't install yarn"
exit 682427
fi
php composer.phar install
npm install
function_check get_mariadb_password
get_mariadb_password
@ -711,6 +717,10 @@ function install_koel {
sed -i 's/MAIL_PORT=.*/MAIL_PORT=25/g' .env
php artisan koel:init
if [ ! "$?" = "0" ]; then
echo $"Can't install koel:init"
exit 78362
fi
koel_remove_gravatar
chown -R www-data:www-data /var/www/$KOEL_DOMAIN_NAME/htdocs