From fea96118bc5204b269f75e8ad8e774703250156d Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 17 Sep 2023 19:15:56 +0400 Subject: [PATCH] Set a new path to radio files (where playlists, filelist, and music are stored). --- cmd/dwelling-radio/main.go | 4 ++-- configs/radio.vars.liq | 2 +- init/radio.service | 4 ++-- tools/radioctl | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/dwelling-radio/main.go b/cmd/dwelling-radio/main.go index 781fcfc..c39f5d3 100644 --- a/cmd/dwelling-radio/main.go +++ b/cmd/dwelling-radio/main.go @@ -20,8 +20,8 @@ var ( listenAddress = flag.String("listen", "/var/run/dwelling-radio/sock", "listen address (ip:port|unix_path)") 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", "/srv/radio/mostlistenedsong", "path to a file that stores info about the most listened song") + filelistPath = flag.String("filelist", "/mnt/data/appdata/radio/filelist.html", "path to a filelist.html file") + mostListenedSongPath = flag.String("mls-file", "/mnt/data/appdata/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/configs/radio.vars.liq b/configs/radio.vars.liq index beac003..c0ccc80 100644 --- a/configs/radio.vars.liq +++ b/configs/radio.vars.liq @@ -6,7 +6,7 @@ radio_url = "https://radio.arav.su" radio_name = "Arav's dwelling / Radio" radio_desc = "Broadcasting from under my desk." -radio_dir = "/srv/radio/" +radio_dir = "/mnt/data/appdata/radio/" harbor_port = 8002 harbor_password = "" diff --git a/init/radio.service b/init/radio.service index cdea494..642f1dd 100755 --- a/init/radio.service +++ b/init/radio.service @@ -10,8 +10,8 @@ DynamicUser=yes 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 /srv/radio/mostlistenedsong \ + -filelist /mnt/data/appdata/radio/filelist.html \ + -mls-file /mnt/data/appdata/radio/mostlistenedsong \ -lst-len 10 ReadOnlyPaths=/ diff --git a/tools/radioctl b/tools/radioctl index c9a83dc..d6f5d95 100644 --- a/tools/radioctl +++ b/tools/radioctl @@ -1,6 +1,6 @@ #!/usr/bin/sh -radio_dir=/srv/radio +radio_dir=/mnt/data/appdata/radio case $1 in f | filelist)