Skip to content

Commit 509ae54

Browse files
committed
Add Recyclarr LXC
1 parent a11755d commit 509ae54

File tree

3 files changed

+171
-0
lines changed

3 files changed

+171
-0
lines changed

ct/recyclarr.sh

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

install/recyclarr-install.sh

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2024 tteck
4+
# Author: tteck
5+
# Co-Author: MrYadro
6+
# License: MIT
7+
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
8+
9+
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
10+
color
11+
verb_ip6
12+
catch_errors
13+
setting_up_container
14+
network_check
15+
update_os
16+
17+
msg_info "Installing Dependencies"
18+
$STD apt-get install -y curl
19+
$STD apt-get install -y git
20+
$STD apt-get install -y sudo
21+
$STD apt-get install -y mc
22+
msg_ok "Installed Dependencies"
23+
24+
msg_info "Installing Recyclarr"
25+
wget -q $(curl -s https://api.github.com/repos/recyclarr/recyclarr/releases/latest | grep download | grep linux-x64 | cut -d\" -f4)
26+
tar -C /usr/local/bin -xJf recyclarr*.tar.xz
27+
rm -rf recyclarr*.tar.gz
28+
mkdir -p /root/.config/recyclarr
29+
recyclarr config create
30+
msg_ok "Installed Recyclarr"
31+
32+
msg_info "Creating Service"
33+
service_path="/etc/systemd/system/recyclarr.service"
34+
echo "[Unit]
35+
Description=recyclarr service
36+
After=syslog.target network-online.target
37+
[Service]
38+
Type=simple
39+
User=root
40+
Group=root
41+
ExecStart=/usr/local/bin/recyclarr --config=/root/.config/recyclarr/
42+
[Install]
43+
WantedBy=multi-user.target" >$service_path
44+
systemctl enable --now -q recyclarr.service
45+
msg_ok "Created Service"
46+
47+
motd_ssh
48+
customize
49+
50+
msg_info "Cleaning up"
51+
$STD apt-get -y autoremove
52+
$STD apt-get -y autoclean
53+
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+
16
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 a command-line application that will automatically synchronize recommended settings from the TRaSH guides to your Sonarr/Radarr instances.",
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)