1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/immich_ynh.git synced 2024-09-03 20:36:24 +02:00

Fix upgrade

This commit is contained in:
Sylvain 2024-04-01 10:43:40 +02:00
parent af7928da3a
commit 0c89d8e2b7

View file

@ -32,7 +32,7 @@ ynh_setup_source --source_id="main" --dest_dir="$source_dir" --full_replace=1
# CHECK PYTHON VERSION AND COMPILE IF NEEDED # CHECK PYTHON VERSION AND COMPILE IF NEEDED
#================================================= #=================================================
ynh_script_progression --message="Check Python version & compile the required one if needed..." --weight=1 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_py_latest_from_major --python="$py_required_major"
myynh_install_python --python="$py_required_version" myynh_install_python --python="$py_required_version"