From 7e8083f98ce6421d4b0b2b1b310843306002a5a9 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 4 Jun 2025 09:19:28 +0200 Subject: [PATCH] more uv migs --- install/medusa-install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install/medusa-install.sh b/install/medusa-install.sh index e46ececb7..5726df0c1 100644 --- a/install/medusa-install.sh +++ b/install/medusa-install.sh @@ -14,6 +14,8 @@ setting_up_container network_check update_os +PYTHON_VERSION="3.12" setup_uv + msg_info "Installing Dependencies" $STD apt-get install -y \ git-core \ @@ -29,6 +31,9 @@ msg_ok "Installed Dependencies" msg_info "Installing Medusa" $STD git clone https://github.com/pymedusa/Medusa.git /opt/medusa +cd /opt/medusa +$STD uv venv .venv +$STD .venv/bin/uv pip install . msg_ok "Installed Medusa" msg_info "Creating Service" @@ -39,7 +44,8 @@ After=network.target [Service] Type=simple -ExecStart=/usr/bin/python3 /opt/medusa/start.py -q --nolaunch --datadir=/opt/medusa +WorkingDirectory=/opt/medusa +ExecStart=/opt/medusa/.venv/bin/python start.py -q --nolaunch --datadir=/opt/medusa TimeoutStopSec=25 KillMode=process Restart=on-failure