From 61339689b053eb4355ec11e1300114042960898e Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Sun, 23 Mar 2025 19:09:55 +0000 Subject: [PATCH] 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 :/ --- release/linux/postinstall.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/release/linux/postinstall.sh b/release/linux/postinstall.sh index 65f1d208d..85eb0850f 100644 --- a/release/linux/postinstall.sh +++ b/release/linux/postinstall.sh @@ -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