force create venv if pip packages are to be installed

This commit is contained in:
aptalca
2024-03-25 11:09:06 -04:00
parent 04acf3e7e2
commit 1e6dde1716
+1 -1
View File
@@ -4,7 +4,7 @@
if [[ -f "/mod-pip-packages-to-install.list" ]]; then
IFS=' ' read -ra PIP_PACKAGES <<< "$(tr '\n' ' ' < /mod-pip-packages-to-install.list)"
if [[ ${#PIP_PACKAGES[@]} -ne 0 ]] && [[ ${PIP_PACKAGES[*]} != "" ]]; then
if ! command -v python3; then
if [[ ! -e /lsiopy/bin/python3 ]]; then
CREATE_VENV="true"
if [[ -f /usr/bin/apt ]]; then
echo "python3-venv" >> /mod-repo-packages-to-install.list