fixes profilarr
This commit is contained in:
parent
59320378bd
commit
ce9eb9a2c2
@ -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}"
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user