Files
ProxmoxVE/install/recyclarr-install.sh
T

38 lines
1.0 KiB
Bash
Raw Normal View History

2024-11-16 11:44:24 +03:00
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
2024-11-16 11:44:24 +03:00
# Author: MrYadro
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://recyclarr.dev/wiki/ | Github: https://github.com/recyclarr/recyclarr
2024-11-16 11:44:24 +03:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2024-11-16 11:44:24 +03:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y git libicu-dev cron
2024-11-16 11:44:24 +03:00
msg_ok "Installed Dependencies"
fetch_and_deploy_gh_release "recyclarr" "recyclarr/recyclarr" "prebuild" "latest" "/usr/local/bin" "recyclarr-linux-$(arch_resolve "x64" "arm64").tar.xz"
2025-08-22 14:59:11 +02:00
msg_info "Configuring Recyclarr"
mkdir -p /root/.config/recyclarr/{configs,includes}
2025-09-09 09:51:38 +02:00
$STD recyclarr config create
2025-08-22 14:59:11 +02:00
msg_ok "Configured Recyclarr"
2024-11-16 11:44:24 +03:00
msg_info "Setting up Daily Sync Cron"
cat <<EOF >/etc/cron.d/recyclarr
# Run recyclarr sync daily
2025-12-24 08:25:52 +00:00
@daily root /usr/local/bin/recyclarr sync >> /root/.config/recyclarr/sync.log 2>&1
EOF
chmod 644 /etc/cron.d/recyclarr
msg_ok "Setup Daily Sync Cron"
2024-11-16 11:44:24 +03:00
motd_ssh
customize
cleanup_lxc