From 3528dd1e51d6ff08c4b1b3966d1b239d2d731933 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 15 Feb 2021 18:53:21 +0100 Subject: [PATCH] Fix --- scripts/install | 4 ++-- scripts/upgrade | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index f08e76d..b185512 100644 --- a/scripts/install +++ b/scripts/install @@ -121,10 +121,10 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Building Invidious... (this will take some time and resources!)" --weight=10 -pushd $final_path || ynh_die +pushd $final_path shards update && shards install crystal build src/invidious.cr --release -popd || ynh_die +popd #================================================= # MODIFY A CONFIG FILE diff --git a/scripts/upgrade b/scripts/upgrade index a27317a..9d8c320 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -81,7 +81,7 @@ pushd $final_path for i in `git rev-list --reverse --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done shards update && shards install crystal build src/invidious.cr --release - popd || ynh_die + popd fi # # Remove the app directory securely