diff --git a/home/bin/deboco b/home/bin/deboco index 6f7f70a..16022dc 100755 --- a/home/bin/deboco +++ b/home/bin/deboco @@ -174,6 +174,20 @@ deboco__init() 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") # 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"