fix git comments

This commit is contained in:
bilulib
2025-05-16 21:02:52 +02:00
parent caff858e4d
commit 700aa5b886
3 changed files with 10 additions and 24 deletions

View File

@ -5,7 +5,6 @@
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/plexguide/Huntarr.io
# Import Functions und Setup
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
@ -18,11 +17,15 @@ APPLICATION="huntarr"
REPO_NAME="Huntarr.io"
msg_info "Installing Dependencies"
$STD apt-get install -y
jq \
msg_ok "Installed System Dependencies"
msg_info "Installing Python"
$STD apt-get install -y \
jq \
python3 \
python3-venv
msg_ok "Installed System Dependencies"
msg_ok "Setting up Python"
msg_info "Setting up UV package installer"
curl -LsSf https://astral.sh/uv/install.sh | sh
@ -37,7 +40,6 @@ unzip -q "${RELEASE}.zip"
mv "${REPO_NAME}-${RELEASE}/" "/opt/${APPLICATION}"
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
msg_ok "Setup ${APPLICATION}"
msg_info "Setting up Python Environment"
$STD uv venv /opt/${APPLICATION}/venv
@ -46,18 +48,17 @@ 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_info "Creating Service"
cat <<EOF >/etc/systemd/system/${APPLICATION}.service
[Unit]
Description=Huntarr Service
After=network.target
[Service]
WorkingDirectory=/opt/${APPLICATION}
ExecStart=/opt/${APPLICATION}/venv/bin/python /opt/${APPLICATION}/main.py
Restart=always
[Install]
WantedBy=multi-user.target
EOF
@ -71,4 +72,4 @@ msg_info "Cleaning up"
rm -f "${RELEASE}.zip"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"
msg_ok "Cleaned"