mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-03 18:35:55 +00:00
recyclarr: adjust paths for v8.0 breaking changes (#12129)
Recyclarr v8.0 moved local includes from configs/ to a dedicated includes/ directory. The install script now creates both dirs upfront. The update script migrates existing include subdirs from configs/ to includes/ after the binary update and also handles detection for both old (recyclarr.yml) and new (configs/) config layouts. See https://recyclarr.dev/guide/upgrade-guide/v8.0 Ref #12109
This commit is contained in:
committed by
GitHub
parent
300f8c80e8
commit
7dbd1fdc36
@@ -23,7 +23,7 @@ function update_script() {
|
|||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
if [[ ! -f /root/.config/recyclarr/recyclarr.yml ]]; then
|
if [[ ! -f /root/.config/recyclarr/recyclarr.yml ]] && [[ ! -d /root/.config/recyclarr/configs ]]; then
|
||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
@@ -33,6 +33,20 @@ function update_script() {
|
|||||||
|
|
||||||
fetch_and_deploy_gh_release "recyclarr" "recyclarr/recyclarr" "prebuild" "latest" "/usr/local/bin" "recyclarr-linux-x64.tar.xz"
|
fetch_and_deploy_gh_release "recyclarr" "recyclarr/recyclarr" "prebuild" "latest" "/usr/local/bin" "recyclarr-linux-x64.tar.xz"
|
||||||
|
|
||||||
|
# Migrate includes from configs/ to includes/ (recyclarr v8)
|
||||||
|
RECYCLARR_DIR="/root/.config/recyclarr"
|
||||||
|
mkdir -p "$RECYCLARR_DIR/includes"
|
||||||
|
if [[ -d "$RECYCLARR_DIR/configs" ]]; then
|
||||||
|
for item in "$RECYCLARR_DIR/configs"/*/; do
|
||||||
|
[[ -d "$item" ]] || continue
|
||||||
|
dir_name=$(basename "$item")
|
||||||
|
# Only move subdirs that look like include dirs (not the configs themselves)
|
||||||
|
if [[ "$dir_name" != "configs" ]] && [[ ! -d "$RECYCLARR_DIR/includes/$dir_name" ]]; then
|
||||||
|
mv "$item" "$RECYCLARR_DIR/includes/"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ msg_ok "Installed Dependencies"
|
|||||||
fetch_and_deploy_gh_release "recyclarr" "recyclarr/recyclarr" "prebuild" "latest" "/usr/local/bin" "recyclarr-linux-x64.tar.xz"
|
fetch_and_deploy_gh_release "recyclarr" "recyclarr/recyclarr" "prebuild" "latest" "/usr/local/bin" "recyclarr-linux-x64.tar.xz"
|
||||||
|
|
||||||
msg_info "Configuring Recyclarr"
|
msg_info "Configuring Recyclarr"
|
||||||
mkdir -p /root/.config/recyclarr
|
mkdir -p /root/.config/recyclarr/{configs,includes}
|
||||||
$STD recyclarr config create
|
$STD recyclarr config create
|
||||||
msg_ok "Configured Recyclarr"
|
msg_ok "Configured Recyclarr"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user