1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/navidrome_ynh.git synced 2024-09-03 19:46:30 +02:00

Add config path

This commit is contained in:
ericgaspar 2020-08-17 21:54:17 +02:00
parent 1ceb9e8f9a
commit a0bb9a2166
3 changed files with 3 additions and 0 deletions

View file

@ -4,4 +4,5 @@ Port = "__PORT__"
BaseURL = "__PATH_URL__"
ScanInterval = "90s"
TranscodingCacheSize = "150MiB"
DataFolder = "__CONFIG_PATH__"
MusicFolder = "/home/yunohost.navidrome/Music"

View file

@ -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"

View file

@ -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"