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"
msg_info "Installing Python Dependencies"
cd /opt/profilarr
export UV_CONCURRENT_DOWNLOADS=1
$STD uv sync --no-dev --frozen
cd /opt/profilarr/backend
$STD uv venv /opt/profilarr/backend/.venv
$STD uv pip install --python /opt/profilarr/backend/.venv/bin/python -r requirements.txt
msg_ok "Installed Python Dependencies"
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 "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6868${CL}"

View File

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