From 0c89d8e2b7a73435fc0d93765d8e14a80edc9159 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 1 Apr 2024 10:43:40 +0200 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3cb68f0..3d5541a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -32,7 +32,7 @@ ynh_setup_source --source_id="main" --dest_dir="$source_dir" --full_replace=1 # CHECK PYTHON VERSION AND COMPILE IF NEEDED #================================================= ynh_script_progression --message="Check Python version & compile the required one if needed..." --weight=1 -py_required_major=$(cat "$tmpdir/machine-learning/Dockerfile" | grep "FROM python:" | head -n1 | cut -d':' -f2 | cut -d'-' -f1) +py_required_major=$(cat "$source_dir/machine-learning/Dockerfile" | grep "FROM python:" | head -n1 | cut -d':' -f2 | cut -d'-' -f1) myynh_py_latest_from_major --python="$py_required_major" myynh_install_python --python="$py_required_version"