diff --git a/.update/patches b/.update/patches index bb164da1a4..5d129c7d89 100755 --- a/.update/patches +++ b/.update/patches @@ -2059,6 +2059,8 @@ Patch_9_9() G_DIETPI-NOTIFY 2 'Preparing Logitech Media Server reinstall to migrate to Lyrion Music Server ...' G_EXEC systemctl --no-reload unmask logitechmediaserver G_EXEC systemctl --no-reload disable --now logitechmediaserver + # Avoid that purging the old package removes user, log and data dir which are still in use by the new package + G_EXEC sed -i '/^if \[ "$1" = purge \]; then/,/^fi/d' /var/lib/dpkg/info/logitechmediaserver.postrm G_EXEC eval 'echo 35 >> /var/tmp/dietpi/dietpi-update_reinstalls' fi fi