Skip to content

Commit 163cc73

Browse files
authored
Add Recyclarr LXC (#271)
* Add Recyclarr LXC * Review fixes * Review fixes * Review fixes * Review fixes
1 parent a11755d commit 163cc73

File tree

3 files changed

+144
-0
lines changed

3 files changed

+144
-0
lines changed

ct/recyclarr.sh

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
#!/usr/bin/env bash
2+
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2024 community-scripts ORG
4+
# Author: MrYadro
5+
# License: MIT
6+
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
7+
8+
function header_info {
9+
clear
10+
cat <<"EOF"
11+
____ __
12+
/ __ \___ _______ _______/ /___ ___________
13+
/ /_/ / _ \/ ___/ / / / ___/ / __ `/ ___/ ___/
14+
/ _, _/ __/ /__/ /_/ / /__/ / /_/ / / / /
15+
/_/ |_|\___/\___/\__, /\___/_/\__,_/_/ /_/
16+
/____/
17+
EOF
18+
}
19+
header_info
20+
echo -e "Loading..."
21+
APP="Recyclarr"
22+
var_disk="2"
23+
var_cpu="1"
24+
var_ram="512"
25+
var_os="debian"
26+
var_version="12"
27+
variables
28+
color
29+
catch_errors
30+
31+
function default_settings() {
32+
CT_TYPE="1"
33+
PW=""
34+
CT_ID=$NEXTID
35+
HN=$NSAPP
36+
DISK_SIZE="$var_disk"
37+
CORE_COUNT="$var_cpu"
38+
RAM_SIZE="$var_ram"
39+
BRG="vmbr0"
40+
NET="dhcp"
41+
GATE=""
42+
APT_CACHER=""
43+
APT_CACHER_IP=""
44+
DISABLEIP6="no"
45+
MTU=""
46+
SD=""
47+
NS=""
48+
MAC=""
49+
VLAN=""
50+
SSH="no"
51+
VERB="no"
52+
echo_default
53+
}
54+
55+
function update_script() {
56+
header_info
57+
if [[ ! -f /root/.config/recyclarr/recyclarr.yml ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
58+
59+
msg_info "Updating ${APP}"
60+
wget -q $(curl -s https://api.github.com/repos/recyclarr/recyclarr/releases/latest | grep download | grep linux-x64 | cut -d\" -f4)
61+
tar -C /usr/local/bin -xJf recyclarr*.tar.xz
62+
rm -rf recyclarr*.tar.xz
63+
msg_ok "Updated ${APP}"
64+
65+
msg_ok "Updated Successfully"
66+
exit
67+
}
68+
69+
start
70+
build_container
71+
description
72+
73+
msg_ok "Completed Successfully!\n"

install/recyclarr-install.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2024 community-scripts ORG
4+
# Author: MrYadro
5+
# License: MIT
6+
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
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 curl
18+
$STD apt-get install -y git
19+
$STD apt-get install -y sudo
20+
$STD apt-get install -y mc
21+
msg_ok "Installed Dependencies"
22+
23+
msg_info "Installing Recyclarr"
24+
wget -q $(curl -s https://api.github.com/repos/recyclarr/recyclarr/releases/latest | grep download | grep linux-x64 | cut -d\" -f4)
25+
tar -C /usr/local/bin -xJf recyclarr*.tar.xz
26+
mkdir -p /root/.config/recyclarr
27+
recyclarr config create
28+
msg_ok "Installed Recyclarr"
29+
30+
motd_ssh
31+
customize
32+
33+
msg_info "Cleaning up"
34+
rm -rf recyclarr*.tar.xz
35+
$STD apt-get -y autoremove
36+
$STD apt-get -y autoclean
37+
msg_ok "Cleaned"

json/recyclarr.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "Recyclarr",
3+
"slug": "recyclarr",
4+
"categories": [
5+
12
6+
],
7+
"date_created": "2024-11-15",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": null,
12+
"documentation": null,
13+
"website": "https://recyclarr.dev/",
14+
"logo": "https://recyclarr.dev/img/recyclarr.png",
15+
"description": "Recyclarr is an automation tool that integrates with media management software like Sonarr and Radarr. It helps users manage and organize their media libraries by automatically searching for and adding content from indexers, based on user-defined criteria. It streamlines the process of maintaining and updating media collections without manual intervention.",
16+
"install_methods": [
17+
{
18+
"type": "default",
19+
"script": "ct/recyclarr.sh",
20+
"resources": {
21+
"cpu": "1",
22+
"ram": "512",
23+
"hdd": "2",
24+
"os": "debian",
25+
"version": "12"
26+
}
27+
}
28+
],
29+
"default_credentials": {
30+
"username": null,
31+
"password": null
32+
},
33+
"notes": []
34+
}

0 commit comments

Comments
 (0)