mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-22 23:16:29 +01:00
Compare commits
2 Commits
fix/amd-gp
...
add_recycl
| Author | SHA1 | Date | |
|---|---|---|---|
| 25331dbb3a | |||
| 4565daa0f4 |
@ -31,5 +31,14 @@
|
|||||||
"username": null,
|
"username": null,
|
||||||
"password": null
|
"password": null
|
||||||
},
|
},
|
||||||
"notes": []
|
"notes": [
|
||||||
|
{
|
||||||
|
"type": "warning",
|
||||||
|
"content": "Configure your Radarr/Sonarr instances in `/root/.config/recyclarr/recyclarr.yml` before the first sync."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "info",
|
||||||
|
"content": "Automatic daily sync is configured via `/etc/cron.d/recyclarr`. Sync logs are saved to `/root/.config/recyclarr/sync.log`."
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,6 +24,14 @@ mkdir -p /root/.config/recyclarr
|
|||||||
$STD recyclarr config create
|
$STD recyclarr config create
|
||||||
msg_ok "Configured Recyclarr"
|
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
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
cleanup_lxc
|
cleanup_lxc
|
||||||
|
|||||||
@ -2734,46 +2734,11 @@ EOF
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# For AMD GPUs, firmware-amd-graphics is needed but requires non-free repositories
|
# AMD firmware for better GPU support
|
||||||
if [[ "$os_id" == "debian" ]]; then
|
if [[ "$os_id" == "debian" ]]; then
|
||||||
# Add non-free-firmware repository if not already present
|
$STD apt -y install firmware-amd-graphics 2>/dev/null || true
|
||||||
if [[ ! -f /etc/apt/sources.list.d/non-free-firmware.sources ]]; then
|
|
||||||
if [[ "$os_codename" == "bookworm" ]]; then
|
|
||||||
cat <<EOF >/etc/apt/sources.list.d/non-free-firmware.sources
|
|
||||||
Types: deb
|
|
||||||
URIs: http://deb.debian.org/debian
|
|
||||||
Suites: bookworm bookworm-updates
|
|
||||||
Components: non-free-firmware
|
|
||||||
|
|
||||||
Types: deb
|
|
||||||
URIs: http://deb.debian.org/debian-security
|
|
||||||
Suites: bookworm-security
|
|
||||||
Components: non-free-firmware
|
|
||||||
EOF
|
|
||||||
elif [[ "$os_codename" == "trixie" || "$os_codename" == "sid" ]]; then
|
|
||||||
cat <<EOF >/etc/apt/sources.list.d/non-free-firmware.sources
|
|
||||||
Types: deb
|
|
||||||
URIs: http://deb.debian.org/debian
|
|
||||||
Suites: trixie trixie-updates
|
|
||||||
Components: non-free-firmware
|
|
||||||
|
|
||||||
Types: deb
|
|
||||||
URIs: http://deb.debian.org/debian-security
|
|
||||||
Suites: trixie-security
|
|
||||||
Components: non-free-firmware
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
$STD apt update
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Now install AMD firmware and libdrm
|
|
||||||
$STD apt -y install libdrm-amdgpu1 firmware-amd-graphics 2>/dev/null || {
|
|
||||||
msg_warn "Failed to install AMD firmware - may need manual installation"
|
|
||||||
}
|
|
||||||
else
|
|
||||||
# For non-Debian (Ubuntu, etc), try to install without adding repos
|
|
||||||
$STD apt -y install libdrm-amdgpu1 firmware-amd-graphics 2>/dev/null || true
|
|
||||||
fi
|
fi
|
||||||
|
$STD apt -y install libdrm-amdgpu1 2>/dev/null || true
|
||||||
;;
|
;;
|
||||||
|
|
||||||
NVIDIA)
|
NVIDIA)
|
||||||
|
|||||||
Reference in New Issue
Block a user