Browse Source

fix: [docker-host] use 'python3' as 'python' executable if missing

boris/docuseal
Valentin Lab 1 year ago
parent
commit
f1c012026e
  1. 10
      precise/base-0k/hooks/install.d/00-base.sh

10
precise/base-0k/hooks/install.d/00-base.sh

@ -60,6 +60,16 @@ case $(lsb_release -is) in
fi fi
sed -ri 's/^\s*#\s*(en_US\.UTF-?8.*)\s*$/\1/g' /etc/locale.gen sed -ri 's/^\s*#\s*(en_US\.UTF-?8.*)\s*$/\1/g' /etc/locale.gen
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 esac

Loading…
Cancel
Save