mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-20 02:13:07 -04:00
force create venv if pip packages are to be installed
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
if [[ -f "/mod-pip-packages-to-install.list" ]]; then
|
if [[ -f "/mod-pip-packages-to-install.list" ]]; then
|
||||||
IFS=' ' read -ra PIP_PACKAGES <<< "$(tr '\n' ' ' < /mod-pip-packages-to-install.list)"
|
IFS=' ' read -ra PIP_PACKAGES <<< "$(tr '\n' ' ' < /mod-pip-packages-to-install.list)"
|
||||||
if [[ ${#PIP_PACKAGES[@]} -ne 0 ]] && [[ ${PIP_PACKAGES[*]} != "" ]]; then
|
if [[ ${#PIP_PACKAGES[@]} -ne 0 ]] && [[ ${PIP_PACKAGES[*]} != "" ]]; then
|
||||||
if ! command -v python3; then
|
if [[ ! -e /lsiopy/bin/python3 ]]; then
|
||||||
CREATE_VENV="true"
|
CREATE_VENV="true"
|
||||||
if [[ -f /usr/bin/apt ]]; then
|
if [[ -f /usr/bin/apt ]]; then
|
||||||
echo "python3-venv" >> /mod-repo-packages-to-install.list
|
echo "python3-venv" >> /mod-repo-packages-to-install.list
|
||||||
|
|||||||
Reference in New Issue
Block a user