diff --git a/precise/base-0k/hooks/install.d/00-base.sh b/precise/base-0k/hooks/install.d/00-base.sh index ccb2d0a..45afee6 100755 --- a/precise/base-0k/hooks/install.d/00-base.sh +++ b/precise/base-0k/hooks/install.d/00-base.sh @@ -60,6 +60,16 @@ case $(lsb_release -is) in fi sed -ri 's/^\s*#\s*(en_US\.UTF-?8.*)\s*$/\1/g' /etc/locale.gen locale-gen + + ## Debian11 doesn't have a 'python' executable but only a + ## 'python3' executable some python script don't care about + ## the version, they just want a 'python' executable. + if ! type -p python >/dev/null 2>&1; then + if py3=$(type -p python3); then + echo "No 'python' available in \$PATH, but 'python3' found, using it." >&2 + ln -svf "$py3" /usr/local/bin/python + fi + fi ;; esac