mirror of
https://github.com/YunoHost-Apps/navidrome_ynh.git
synced 2024-09-03 19:46:30 +02:00
cleaning
This commit is contained in:
parent
ae91cc2b20
commit
38bc12f940
2 changed files with 9 additions and 12 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue