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:
parent
c629be803f
commit
161fe8ea80
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue