mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-23 23:46:24 +01:00
* Add default daily cron job for recyclarr sync - Create /etc/cron.d/recyclarr file with @daily schedule - Log output to /root/.config/recyclarr/sync.log - Uses recommended default schedule from recyclarr docs - Follows project convention for cron jobs Implements #10182 * Add notes about daily cron job to recyclarr.json - Info about automatic daily sync via cron - Reference to cron file location for customization - Warning about configuring instances before first sync
38 lines
937 B
Bash
38 lines
937 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2021-2025 community-scripts ORG
|
|
# Author: MrYadro
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://recyclarr.dev/wiki/
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
color
|
|
verb_ip6
|
|
catch_errors
|
|
setting_up_container
|
|
network_check
|
|
update_os
|
|
|
|
msg_info "Installing Dependencies"
|
|
$STD apt install -y git
|
|
msg_ok "Installed Dependencies"
|
|
|
|
fetch_and_deploy_gh_release "recyclarr" "recyclarr/recyclarr" "prebuild" "latest" "/usr/local/bin" "recyclarr-linux-x64.tar.xz"
|
|
|
|
msg_info "Configuring Recyclarr"
|
|
mkdir -p /root/.config/recyclarr
|
|
$STD recyclarr config create
|
|
msg_ok "Configured Recyclarr"
|
|
|
|
msg_info "Setting up Daily Sync Cron"
|
|
cat <<EOF >/etc/cron.d/recyclarr
|
|
# Run recyclarr sync daily
|
|
@daily root recyclarr sync >> /root/.config/recyclarr/sync.log 2>&1
|
|
EOF
|
|
chmod 644 /etc/cron.d/recyclarr
|
|
msg_ok "Setup Daily Sync Cron"
|
|
|
|
motd_ssh
|
|
customize
|
|
cleanup_lxc
|