diff --git a/config_panel.toml b/config_panel.toml index 634c825..fd0ccb5 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -13,7 +13,7 @@ services = ["__APP__"] yes = "true" no = "false" help = "Controls whether the player in the UI will animate the album cover" - bind = "EnableCoverAnimation:__INSTALL_DIR__/navidrome.toml" + bind = "EnableCoverAnimation:__DATA_DIR__/navidrome.toml" [main.config.enable_downloads] ask = "Allow music download" @@ -21,7 +21,7 @@ services = ["__APP__"] yes = "true" no = "false" help = "Enable the option in the UI to download music/albums/artists/playlists from the server" - bind = "EnableDownloads:__INSTALL_DIR__/navidrome.toml" + bind = "EnableDownloads:__DATA_DIR__/navidrome.toml" [main.config.enable_sharing] ask = "Enable Sharing feature" @@ -29,7 +29,7 @@ services = ["__APP__"] yes = "true" no = "false" help = "Enable the Sharing feature" - bind = "EnableSharing:__INSTALL_DIR__/navidrome.toml" + bind = "EnableSharing:__DATA_DIR__/navidrome.toml" [main.config.scanner_extractor] ask = "Select metadata extractor" @@ -37,7 +37,7 @@ services = ["__APP__"] choices = ["taglib", "ffmpeg"] default = "taglib" help = "Select metadata extractor implementation" - bind = "Scanner.Extractor:__INSTALL_DIR__/navidrome.toml" + bind = "Scanner.Extractor:__DATA_DIR__/navidrome.toml" [main.config.enable_transcoding] ask = "Enable transcoding" @@ -45,10 +45,10 @@ services = ["__APP__"] yes = "true" no = "false" help = "Enables transcoding configuration in the UI" - bind = "EnableTranscodingConfig:__INSTALL_DIR__/navidrome.toml" + bind = "EnableTranscodingConfig:__DATA_DIR__/navidrome.toml" [main.config.welcome_message] ask = "Welcome message" type = "string" help = "Add a welcome message to the login screen" - bind = "UIWelcomeMessage:__INSTALL_DIR__/navidrome.toml" + bind = "UIWelcomeMessage:__DATA_DIR__/navidrome.toml" diff --git a/scripts/change_url b/scripts/change_url index 1c33c62..78624be 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -30,13 +30,10 @@ ynh_change_url_nginx_config #================================================= ynh_script_progression --message="Modifying a config file..." --weight=1 -config_path="/var/lib/$app" -path_url="$new_path" +ynh_add_config --template="navidrome.toml" --destination="$data_dir/navidrome.toml" -ynh_add_config --template="navidrome.toml" --destination="$config_path/navidrome.toml" - -chmod 600 "$config_path/navidrome.toml" -chown -R $app:$app "$config_path" +chmod 600 "$data_dir/navidrome.toml" +chown -R $app:$app "$data_dir/navidrome.toml" #================================================= # GENERIC FINALISATION