From fb67ff8a363e4ae861436de1f60dea6737a6ed89 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Wed, 25 Dec 2024 15:56:23 +0700 Subject: [PATCH] Live patch 0 v9.9 (#7322) - Live patch 0 | Fix Sonarr v4 permissions for updater --- .update/version | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.update/version b/.update/version index 0f107f5c7b..550f1f8a8d 100644 --- a/.update/version +++ b/.update/version @@ -14,6 +14,7 @@ G_MIN_DEBIAN=6 # Alternative Git branch to automatically migrate to when Debian version is too low G_OLD_DEBIAN_BRANCH='8' # Live patches -G_LIVE_PATCH_DESC=() -G_LIVE_PATCH_COND=() -G_LIVE_PATCH=() +G_LIVE_PATCH_DESC=('Fix Sonarr v4 permissions for updater. Only needed if you plan to install or migrate to Sonarr v4 via dietpi-software.') +G_LIVE_PATCH_COND=('grep -q '\''^ReadWritePaths=-/usr/lib/sonarr'\'' /boot/dietpi/dietpi-software') +# shellcheck disable=SC2016 +G_LIVE_PATCH=('sed -i '\''s|^ReadWritePaths=-/usr/lib/sonarr|ReadWritePaths=-$install_dir|'\'' /boot/dietpi/dietpi-software')