diff --git a/install/metube-install.sh b/install/metube-install.sh index bf1bc2ecc..060bc7889 100644 --- a/install/metube-install.sh +++ b/install/metube-install.sh @@ -36,9 +36,12 @@ cd /opt/metube/ui $STD npm install $STD node_modules/.bin/ng build cd /opt/metube -$STD uv venv .venv -$STD .venv/bin/uv pip install pipenv -$STD .venv/bin/pipenv install +$STD uv venv /opt/motioneye/.venv +$STD /opt/metube/.venv/bin/python -m ensurepip --upgrade +$STD /opt/metube/.venv/bin/python -m pip install --upgrade pip +$STD /opt/metube/.venv/bin/python -m pip install pipenv +$STD /opt/metube/.venv/bin/pipenv install + mkdir -p /opt/metube_downloads /opt/metube_downloads/.metube /opt/metube_downloads/music /opt/metube_downloads/videos cat </opt/metube/.env DOWNLOAD_DIR=/opt/metube_downloads diff --git a/install/motioneye-install.sh b/install/motioneye-install.sh index d7e69ccf4..73599a892 100644 --- a/install/motioneye-install.sh +++ b/install/motioneye-install.sh @@ -33,7 +33,9 @@ msg_ok "Installed FFmpeg" msg_info "Installing MotionEye" $STD apt-get update $STD uv venv /opt/motioneye/.venv -$STD /opt/motioneye/.venv/bin/uv pip install git+https://github.com/motioneye-project/motioneye.git@dev +$STD /opt/motioneye/.venv/bin/python -m ensurepip --upgrade +$STD /opt/motioneye/.venv/bin/python -m pip install --upgrade pip +$STD /opt/motioneye/.venv/bin/python -m pip install git+https://github.com/motioneye-project/motioneye.git@dev mkdir -p /etc/motioneye chown -R root:root /etc/motioneye diff --git a/install/pialert-install.sh b/install/pialert-install.sh index 46d365779..c6689f17e 100644 --- a/install/pialert-install.sh +++ b/install/pialert-install.sh @@ -49,10 +49,9 @@ curl -fsSL https://github.com/leiweibau/Pi.Alert/raw/main/tar/pialert_latest.tar rm -rf /var/lib/ieee-data /var/www/html/index.html cd /opt/pialert $STD uv venv /opt/pialert/.venv -$STD uv pip install mac-vendor-lookup -$STD uv pip install fritzconnection -$STD uv pip install cryptography -$STD uv pip install pyunifi +$STD /opt/pialert/.venv/bin/python -m ensurepip --upgrade +$STD /opt/pialert/.venv/bin/python -m pip install --upgrade pip +$STD /opt/pialert/.venv/bin/python -m pip install mac-vendor-lookup fritzconnection cryptography pyunifi sed -i -e 's#^sudo cp -n /usr/share/ieee-data/.* /var/lib/ieee-data/#\# &#' -e '/^sudo mkdir -p 2_backup$/s/^/# /' -e '/^sudo cp \*.txt 2_backup$/s/^/# /' -e '/^sudo cp \*.csv 2_backup$/s/^/# /' /opt/pialert/back/update_vendors.sh mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.html.old ln -s /usr/share/ieee-data/ /var/lib/ diff --git a/install/unmanic-install.sh b/install/unmanic-install.sh index a826a976c..785103a77 100644 --- a/install/unmanic-install.sh +++ b/install/unmanic-install.sh @@ -37,7 +37,9 @@ msg_info "Installing Unmanic" mkdir -p /opt/unmanic cd /opt/unmanic $STD uv venv /opt/unmanic/.venv -$STD uv pip install unmanic +$STD /opt/unmanic/.venv/bin/python -m ensurepip --upgrade +$STD /opt/unmanic/.venv/bin/python -m pip install --upgrade pip +$STD /opt/unmanic/.venv/bin/python -m pip install unmanic sed -i -e 's/^sgx:x:104:$/render:x:104:root/' -e 's/^render:x:106:root$/sgx:x:106:/' /etc/group msg_ok "Installed Unmanic" diff --git a/install/wger-install.sh b/install/wger-install.sh index d49d527bf..56b4acb64 100644 --- a/install/wger-install.sh +++ b/install/wger-install.sh @@ -40,12 +40,15 @@ mv wger-$RELEASE /home/wger/src cd /home/wger/src $STD /home/wger/.venv/bin/wger create-settings --database-path /home/wger/db/database.sqlite $STD uv venv /home/wger/.venv -$STD uv pip install -r requirements_prod.txt -$STD uv pip install -e . +$STD /home/wger/.venv/bin/python -m ensurepip --upgrade +$STD /home/wger/.venv/bin/python -m pip install --upgrade pip +$STD /home/wger/.venv/bin/python -m pip install -r requirements_prod.txt +$STD /home/wger/.venv/bin/python -m pip install -e . sed -i "s#home/wger/src/media#home/wger/media#g" /home/wger/src/settings.py sed -i "/MEDIA_ROOT = '\/home\/wger\/media'/a STATIC_ROOT = '/home/wger/static'" /home/wger/src/settings.py $STD /home/wger/.venv/bin/wger bootstrap -$STD uv run python manage.py collectstatic +cd /home/wger/src/ +$STD /home/wger/.venv/bin/python -m manage.py collectstatic echo "${RELEASE}" >/opt/wger_version.txt msg_ok "Finished setting up wger"