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