Skip to content

Commit 4351218

Browse files
'Add new script' (#5249)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
1 parent 3ee4ece commit 4351218

File tree

4 files changed

+153
-0
lines changed

4 files changed

+153
-0
lines changed

ct/headers/huntarr

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
__ __
2+
/ /_ __ ______ / /_____ ___________
3+
/ __ \/ / / / __ \/ __/ __ `/ ___/ ___/
4+
/ / / / /_/ / / / / /_/ /_/ / / / /
5+
/_/ /_/\__,_/_/ /_/\__/\__,_/_/ /_/
6+

ct/huntarr.sh

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: BiluliB
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/plexguide/Huntarr.io
7+
8+
APP="huntarr"
9+
var_tags="${var_tags:-arr}"
10+
var_cpu="${var_cpu:-2}"
11+
var_ram="${var_ram:-1024}"
12+
var_disk="${var_disk:-4}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-12}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
27+
if [[ ! -f /opt/huntarr/main.py ]]; then
28+
msg_error "No ${APP} Installation Found!"
29+
exit
30+
fi
31+
32+
setup_uv
33+
RELEASE=$(curl -fsSL https://api.github.com/repos/plexguide/Huntarr.io/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
34+
if [[ -f ~/.huntarr && "${RELEASE}" == "$(cat ~/.huntarr)" ]]; then
35+
msg_ok "No update required. ${APP} is already at ${RELEASE}"
36+
exit
37+
fi
38+
msg_info "Stopping huntarr service"
39+
systemctl stop huntarr
40+
msg_ok "Stopped huntarr service"
41+
42+
fetch_and_deploy_gh_release "huntarr" "plexguide/Huntarr.io"
43+
msg_info "Updating $APP to v${RELEASE}"
44+
cd /opt/huntarr
45+
$STD uv pip install -r requirements.txt --python /opt/huntarr/.venv/bin/python
46+
msg_ok "Updated $APP to v${RELEASE}"
47+
48+
msg_info "Starting $APP"
49+
systemctl start huntarr
50+
msg_ok "Started $APP"
51+
52+
msg_ok "Updated $APP to v${RELEASE}"
53+
exit
54+
}
55+
56+
start
57+
build_container
58+
description
59+
60+
msg_ok "Completed Successfully!\n"
61+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
62+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
63+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9705${CL}"

frontend/public/json/huntarr.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "Huntarr",
3+
"slug": "huntarr",
4+
"categories": [
5+
14
6+
],
7+
"date_created": "2025-05-12",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 9705,
12+
"documentation": "https://github.com/plexguide/Huntarr.io/wiki",
13+
"config_path": "/opt/huntarr",
14+
"website": "https://github.com/plexguide/Huntarr.io",
15+
"logo": "https://raw.githubusercontent.com/plexguide/Huntarr.io/refs/heads/main/frontend/static/logo/Huntarr.svg",
16+
"description": "Huntarr is a tool that automates the search for missing or low-quality media content in your collection. It works seamlessly with applications like Sonarr, Radarr, Lidarr, Readarr, and Whisparr, enhancing their functionality with continuous background scans to identify and update missed or outdated content. Through a user-friendly web interface accessible on port 9705, Huntarr provides real-time statistics, log views, and extensive configuration options. The software is especially useful for users who want to keep their media library up to date by automatically searching for missing episodes or higher-quality versions. Huntarr is well-suited for self-hosted environments and can easily run in LXC containers or Docker setups.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/huntarr.sh",
21+
"resources": {
22+
"cpu": 2,
23+
"ram": 1024,
24+
"hdd": 4,
25+
"os": "debian",
26+
"version": "12"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": []
35+
}

install/huntarr-install.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: BiluliB
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/plexguide/Huntarr.io
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
msg_info "Installing Dependencies"
17+
$STD apt-get install -y jq
18+
msg_ok "Installed Dependencies"
19+
20+
setup_uv
21+
fetch_and_deploy_gh_release "huntarr" "plexguide/Huntarr.io"
22+
23+
msg_info "Configure Huntarr"
24+
$STD uv venv /opt/huntarr/.venv
25+
$STD uv pip install --python /opt/huntarr/.venv/bin/python -r /opt/huntarr/requirements.txt
26+
msg_ok "Configured Huntrarr"
27+
28+
msg_info "Creating Service"
29+
cat <<EOF >/etc/systemd/system/huntarr.service
30+
[Unit]
31+
Description=Huntarr Service
32+
After=network.target
33+
[Service]
34+
WorkingDirectory=/opt/huntarr
35+
ExecStart=/opt/huntarr/.venv/bin/python /opt/huntarr/main.py
36+
Restart=always
37+
[Install]
38+
WantedBy=multi-user.target
39+
EOF
40+
systemctl enable -q --now huntarr
41+
msg_ok "Created Service"
42+
43+
motd_ssh
44+
customize
45+
46+
msg_info "Cleaning up"
47+
$STD apt-get -y autoremove
48+
$STD apt-get -y autoclean
49+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)