From 9d8e08533cd58d537f4d19d923f1d0e0ccb2de9f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 17 Aug 2020 09:00:17 +0200 Subject: [PATCH] Fix custom paths --- conf/navidrome.toml | 2 +- scripts/install | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/navidrome.toml b/conf/navidrome.toml index 9fe23d0..05aacf2 100644 --- a/conf/navidrome.toml +++ b/conf/navidrome.toml @@ -1,7 +1,7 @@ LogLevel = "INFO" Address = "127.0.0.1" Port = "__PORT__" -BaseURL = "/__APP__" +BaseURL = "/__PATH_URL__" ScanInterval = "90s" TranscodingCacheSize = "150MiB" MusicFolder = "/home/yunohost.__APP__/Music" diff --git a/scripts/install b/scripts/install index 70dfd88..7f09e5c 100644 --- a/scripts/install +++ b/scripts/install @@ -118,7 +118,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="__APP__" --replace_string="$app" --target_file="$config_path/navidrome.toml" +ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="$config_path/navidrome.toml" ynh_store_file_checksum --file="$config_path/navidrome.toml" diff --git a/scripts/upgrade b/scripts/upgrade index 2dd1903..050fb9e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -115,7 +115,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="__APP__" --replace_string="$app" --target_file="$config_path/navidrome.toml" +ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="$config_path/navidrome.toml" ynh_store_file_checksum --file="$config_path/navidrome.toml"