From 6c46d2cf5fac523b809ce14c4af47225d163dbc6 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 19 Aug 2023 19:48:28 +0400 Subject: [PATCH] Changed path to a mostlistenedsong file. --- cmd/dwelling-radio/main.go | 2 +- init/radio.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/dwelling-radio/main.go b/cmd/dwelling-radio/main.go index 981e9b8..ef8fdd3 100644 --- a/cmd/dwelling-radio/main.go +++ b/cmd/dwelling-radio/main.go @@ -21,7 +21,7 @@ var ( icecastUrl = flag.String("ic-url", "", "URL to an Icecast's status-json.xsl") icecastPlaylistPath = flag.String("ic-playlist", "/var/log/icecast/playlist.log", "path to an Icecast's playlist.log file") filelistPath = flag.String("filelist", "/srv/radio/filelist.html", "path to a filelist.html file") - mostListenedSongPath = flag.String("mls-file", "/mnt/data/appdata/mostlistenedsong", "path to a file that stores info about the most listened song") + mostListenedSongPath = flag.String("mls-file", "/srv/radio/mostlistenedsong", "path to a file that stores info about the most listened song") songListLen = flag.Int("lst-len", 10, "number of songs to show in last N songs table") showVersion = flag.Bool("v", false, "show version") diff --git a/init/radio.service b/init/radio.service index e49d0fb..bf31b62 100755 --- a/init/radio.service +++ b/init/radio.service @@ -11,7 +11,7 @@ ExecStart=/usr/bin/dwelling-radio -listen /var/run/dwelling-radio/sock \ -ic-url http://radio.arav.home.arpa/status-json.xsl \ -ic-playlist /var/log/icecast/playlist.log \ -filelist /srv/radio/filelist.html \ - -mls-file /mnt/data/appdata/mostlistenedsong \ + -mls-file /srv/radio/mostlistenedsong \ -lst-len 10 ReadOnlyPaths=/