deboco now enforces debops update to explicitely python 3.10

This dirty hack allowed the controller to succesfully configure alambix108

fixes https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3715
This commit is contained in:
Guillaume Raffy 2023-12-05 13:35:25 +01:00
parent c629be803f
commit 161fe8ea80
1 changed files with 14 additions and 0 deletions

View File

@ -174,6 +174,20 @@ deboco__init()
fi fi
fi fi
local bug_3715_is_fixed='false'
if [ "$bug_3715_is_fixed" = 'false' ]
then
# make sure that the python version is at least 3.10 so that ansible>=2.15 is installed (as debops 3.1 requires ansible>=2.15)
replace_in_file "$debops_update_script_path" \
'virtualenv --quiet -- ' \
'/usr/bin/python3.10 -m venv '
if [ $? != "$RETURNCODE_SUCCESS" ]
then
return $RETURNCODE_ERROR
fi
fi
local virtual_env_path=$(controller__get_virtualenv_path "$debops_controller_path") local virtual_env_path=$(controller__get_virtualenv_path "$debops_controller_path")
# no need to call update-debops.sh since update-dev.sh does it # no need to call update-debops.sh since update-dev.sh does it
DEBOPS_VENV="$virtual_env_path" "$local_repos_path/bin/update-dev.sh" DEBOPS_VENV="$virtual_env_path" "$local_repos_path/bin/update-dev.sh"