fixes profilarr

This commit is contained in:
MickLesk 2026-02-22 18:33:46 +01:00
parent 59320378bd
commit ce9eb9a2c2
2 changed files with 14 additions and 20 deletions

View File

@ -47,9 +47,9 @@ function update_script() {
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "profilarr" "Dictionarry-Hub/profilarr" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "profilarr" "Dictionarry-Hub/profilarr"
msg_info "Installing Python Dependencies" msg_info "Installing Python Dependencies"
cd /opt/profilarr cd /opt/profilarr/backend
export UV_CONCURRENT_DOWNLOADS=1 $STD uv venv /opt/profilarr/backend/.venv
$STD uv sync --no-dev --frozen $STD uv pip install --python /opt/profilarr/backend/.venv/bin/python -r requirements.txt
msg_ok "Installed Python Dependencies" msg_ok "Installed Python Dependencies"
msg_info "Building Frontend" msg_info "Building Frontend"
@ -87,4 +87,3 @@ msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6868${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6868${CL}"

View File

@ -33,20 +33,16 @@ msg_ok "Created directories"
fetch_and_deploy_gh_release "profilarr" "Dictionarry-Hub/profilarr" fetch_and_deploy_gh_release "profilarr" "Dictionarry-Hub/profilarr"
msg_info "Installing Python Dependencies" msg_info "Installing Python Dependencies"
cd /opt/profilarr cd /opt/profilarr/backend
export UV_CONCURRENT_DOWNLOADS=1 $STD uv venv /opt/profilarr/backend/.venv
$STD uv sync --no-dev --frozen $STD uv pip install --python /opt/profilarr/backend/.venv/bin/python -r requirements.txt
msg_ok "Installed Python Dependencies" msg_ok "Installed Python Dependencies"
msg_info "Building Frontend" msg_info "Building Frontend"
if [[ -d /opt/profilarr/frontend ]]; then cd /opt/profilarr/frontend
cd /opt/profilarr/frontend $STD npm install
$STD npm install $STD npm run build
$STD npm run build msg_ok "Built Frontend"
msg_ok "Built Frontend"
else
msg_ok "No frontend directory found, skipping frontend build"
fi
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/opt/profilarr.env cat <<EOF >/opt/profilarr.env
@ -63,10 +59,10 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
User=root User=root
WorkingDirectory=/opt/profilarr WorkingDirectory=/opt/profilarr/backend
EnvironmentFile=/opt/profilarr.env EnvironmentFile=/opt/profilarr.env
Environment="PATH=/opt/profilarr/.venv/bin:/usr/local/bin:/usr/bin:/bin" Environment="PATH=/opt/profilarr/backend/.venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/opt/profilarr/.venv/bin/python -m profilarr ExecStart=/opt/profilarr/backend/.venv/bin/python -m app.main
Restart=on-failure Restart=on-failure
RestartSec=5 RestartSec=5
@ -79,4 +75,3 @@ msg_ok "Created Service"
motd_ssh motd_ssh
customize customize
cleanup_lxc cleanup_lxc