fix github comments

This commit is contained in:
bilulib
2025-05-16 22:15:47 +02:00
parent 029f2cfba8
commit 748d7fc447

View File

@ -24,30 +24,20 @@ msg_info "Installing Python"
$STD apt-get install -y \
python3 \
python3-venv
msg_ok "Setting up Python"
msg_ok "Installed Python"
msg_info "Setting up UV package installer"
curl -LsSf https://astral.sh/uv/install.sh | sh
msg_info "Setting Up ${APPLICATION}"
$STD bash -c "curl -LsSf https://astral.sh/uv/install.sh | sh"
export PATH="/root/.local/bin:$HOME/.cargo/bin:$PATH"
which uv || echo "uv not found in PATH: $PATH"
msg_ok "UV package installer set up"
msg_info "Setup ${APPLICATION}"
command -v uv &>/dev/null
RELEASE=$(curl -fsSL https://api.github.com/repos/plexguide/Huntarr.io/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
curl -fsSL -o "${RELEASE}.zip" "https://github.com/plexguide/Huntarr.io/archive/refs/tags/${RELEASE}.zip"
unzip -q "${RELEASE}.zip"
mv "${REPO_NAME}-${RELEASE}/" "/opt/${APPLICATION}"
$STD curl -fsSL -o "${RELEASE}.zip" "https://github.com/plexguide/Huntarr.io/archive/refs/tags/${RELEASE}.zip"
$STD unzip -q "${RELEASE}.zip"
$STD mv "${REPO_NAME}-${RELEASE}/" "/opt/${APPLICATION}"
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
msg_info "Setting up Python Environment"
$STD uv venv /opt/${APPLICATION}/venv
msg_ok "Created Python Virtual Environment"
msg_info "Installing Python Dependencies"
$STD uv pip install --python /opt/${APPLICATION}/venv/bin/python -r /opt/${APPLICATION}/requirements.txt
msg_ok "Installed Python Dependencies"
msg_ok "Setup ${APPLICATION}"
msg_ok "Setup ${APPLICATION} Complete"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/${APPLICATION}.service