Should be able to reuse this mechanism with deb and rpm, I think

it would be nice to know which specific one it is without guessing
based on /etc/debian_version or something; but it doesn't look like
that is exposed by goreleaser into an env or anything :/
This commit is contained in:
Rob Emery 2025-03-23 19:09:55 +00:00
parent b091bf9eb7
commit 61339689b0

View File

@ -14,6 +14,11 @@ if [ ! -f /etc/navidrome/navidrome.toml ]; then
fi
postinstall_flag="/var/lib/navidrome/.installed"
package_file="/var/lib/navidrome/.package"
if [ ! -f "$package_file" ]; then
echo "deb/rpm" > "$package_file";
fi
if [ ! -f "$postinstall_flag" ]; then
# The primary reason why this would fail is if the service was already installed AND