From a0bb9a2166ade02c4772426738f2faf7bed2dc00 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 17 Aug 2020 21:54:17 +0200 Subject: [PATCH] Add config path --- conf/navidrome.toml | 1 + scripts/install | 1 + scripts/upgrade | 1 + 3 files changed, 3 insertions(+) diff --git a/conf/navidrome.toml b/conf/navidrome.toml index a8715df..fce04bf 100644 --- a/conf/navidrome.toml +++ b/conf/navidrome.toml @@ -4,4 +4,5 @@ Port = "__PORT__" BaseURL = "__PATH_URL__" ScanInterval = "90s" TranscodingCacheSize = "150MiB" +DataFolder = "__CONFIG_PATH__" MusicFolder = "/home/yunohost.navidrome/Music" diff --git a/scripts/install b/scripts/install index d83b7ba..38b2c17 100644 --- a/scripts/install +++ b/scripts/install @@ -119,6 +119,7 @@ cp ../conf/navidrome.toml "$config_path/navidrome.toml" # Main config File ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$config_path/navidrome.toml" ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="$config_path/navidrome.toml" +ynh_replace_string --match_string="__CONFIG_PATH__" --replace_string="$config_path" --target_file="$config_path/navidrome.toml" ynh_store_file_checksum --file="$config_path/navidrome.toml" diff --git a/scripts/upgrade b/scripts/upgrade index ec05454..7fda7aa 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -116,6 +116,7 @@ cp ../conf/navidrome.toml "$config_path/navidrome.toml" # Main config File ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$config_path/navidrome.toml" ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="$config_path/navidrome.toml" +ynh_replace_string --match_string="__CONFIG_PATH__" --replace_string="$config_path" --target_file="$config_path/navidrome.toml" ynh_store_file_checksum --file="$config_path/navidrome.toml"