Skip to content

Commit

Permalink
v9.9
Browse files Browse the repository at this point in the history
- DietPi-Patches | LMS: Avoid that purging the old package removes user, log and data dir which are still in use by the new package. Also purging fails, if the squeezeboxserver user does not exist anymore, since the postrm script tries it unconditionally with "-e" flag.
  • Loading branch information
MichaIng committed Dec 12, 2024
1 parent af587d4 commit 77ada03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .update/patches
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77ada03

Please sign in to comment.