From 9de0f82a67ec84c8a383e7c1789ee00f1eeb50cc Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 13 Jun 2021 08:45:44 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 17a76f2..142261c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -82,7 +82,6 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=8 ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies -dpkg --remove crystal tempdir="$(mktemp -d)" ynh_setup_source --dest_dir=$tempdir --source_id=crystal @@ -102,13 +101,14 @@ then cp -a "$final_path/config/config.yml" "$tmpdir/config.yml" # Remove the app directory securely - ynh_secure_remove --file=$final_path + #ynh_secure_remove --file=$final_path - git clone https://github.com/iv-org/invidious "$final_path" --quiet - pushd "$final_path" || ynh_die + #git clone https://github.com/iv-org/invidious "$final_path" --quiet + pushd $final_path + git pull shards update && shards install crystal build $final_path/src/invidious.cr --release - popd || ynh_die + popd # Copy the admin saved settings from tmp directory to final path cp -a "$tmpdir/config.yml" "$final_path/config/config.yml"