try3 Python Dependencies path changes
This commit is contained in:
@ -66,10 +66,10 @@ function update_script() {
|
||||
|
||||
if [[ "$CURRENT_CHECKSUM" != "$STORED_CHECKSUM" ]]; then
|
||||
msg_info "Requirements have changed. Performing full upgrade."
|
||||
uv pip install -r requirements.txt --virtual-env /opt/huntarr/venv
|
||||
uv pip install -r requirements.txt --python /opt/huntarr/venv/bin/python
|
||||
else
|
||||
msg_info "Requirements unchanged. Verifying installation."
|
||||
uv pip install -r requirements.txt --virtual-env /opt/huntarr/venv
|
||||
uv pip install -r requirements.txt --python /opt/huntarr/venv/bin/python
|
||||
fi
|
||||
else
|
||||
# First time update - ensure UV is installed
|
||||
@ -78,7 +78,7 @@ function update_script() {
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
msg_ok "UV package manager installed"
|
||||
fi
|
||||
uv pip install -r requirements.txt --virtual-env /opt/huntarr/venv
|
||||
uv pip install -r requirements.txt --python /opt/huntarr/venv/bin/python
|
||||
fi
|
||||
# Store new checksum
|
||||
md5sum requirements.txt | awk '{print $1}' >.requirements_checksum
|
||||
|
||||
@ -44,7 +44,7 @@ $STD uv venv /opt/${APPLICATION}/venv
|
||||
msg_ok "Created Python Virtual Environment"
|
||||
|
||||
msg_info "Installing Python Dependencies"
|
||||
$STD uv pip install --virtual-env /opt/${APPLICATION}/venv -r /opt/${APPLICATION}/requirements.txt
|
||||
$STD uv pip install --python /opt/${APPLICATION}/venv/bin/python -r /opt/${APPLICATION}/requirements.txt
|
||||
msg_ok "Installed Python Dependencies"
|
||||
|
||||
msg_info "Creating Service"
|
||||
@ -71,4 +71,4 @@ msg_info "Cleaning up"
|
||||
rm -f "${RELEASE}.zip"
|
||||
$STD apt-get -y autoremove
|
||||
$STD apt-get -y autoclean
|
||||
msg_ok "Cleaned"
|
||||
msg_ok "Cleaned"
|
||||
Reference in New Issue
Block a user