mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
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:
parent
b091bf9eb7
commit
61339689b0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user