mirror of
https://github.com/YunoHost-Apps/navidrome_ynh.git
synced 2024-09-03 19:46:30 +02:00
Fix
This commit is contained in:
parent
a7a6d2f7f0
commit
7c1224de44
4 changed files with 17 additions and 0 deletions
|
@ -37,6 +37,9 @@ UILoginBackgroundUrl = ""
|
|||
# Add a welcome message to the login screen
|
||||
UIWelcomeMessage = ""
|
||||
|
||||
# Controls whether the player in the UI will animate the album cover (rotation)
|
||||
EnableCoverAnimation = "__ENABLE_ANIMATION__"
|
||||
|
||||
# How long Navidrome will wait before closing web ui idle sessions
|
||||
SessionTimeout = "24h"
|
||||
|
||||
|
|
|
@ -7,6 +7,12 @@ services = ["__APP__"]
|
|||
[main.config]
|
||||
name = "Configuration Options"
|
||||
|
||||
[main.config.enable_animation]
|
||||
ask = "Enable cover animation"
|
||||
type = "boolean"
|
||||
help = "Controls whether the player in the UI will animate the album cover"
|
||||
bind = "EnableCoverAnimation:/var/lib/navidrome/navidrome.toml"
|
||||
|
||||
[main.config.enable_downloads]
|
||||
ask = "Allow music download"
|
||||
type = "boolean"
|
||||
|
|
|
@ -29,6 +29,7 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
|
||||
enable_downloads="true"
|
||||
scanner_extractor="taglib"
|
||||
enable_animation="true"
|
||||
|
||||
#=================================================
|
||||
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
||||
|
@ -50,6 +51,7 @@ ynh_app_setting_set --app=$app --key=domain --value=$domain
|
|||
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
||||
ynh_app_setting_set --app=$app --key=enable_downloads --value=$enable_downloads
|
||||
ynh_app_setting_set --app=$app --key=scanner_extractor --value=$scanner_extractor
|
||||
ynh_app_setting_set --app=$app --key=enable_animation --value=$enable_animation
|
||||
|
||||
#=================================================
|
||||
# STANDARD MODIFICATIONS
|
||||
|
|
|
@ -24,6 +24,7 @@ architecture=$YNH_ARCH
|
|||
|
||||
enable_downloads=$(ynh_app_setting_get --app=$app --key=enable_downloads)
|
||||
scanner_extractor=$(ynh_app_setting_get --app=$app --key=scanner_extractor)
|
||||
enable_animation=$(ynh_app_setting_get --app=$app --key=enable_animation)
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
|
@ -59,6 +60,11 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd
|
|||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
if [ -z "$enable_animation" ]; then
|
||||
enable_animation="true"
|
||||
ynh_app_setting_set --app=$app --key=enable_animation --value=$enable_animation
|
||||
fi
|
||||
|
||||
if [ -z "$enable_downloads" ]; then
|
||||
enable_downloads="true"
|
||||
ynh_app_setting_set --app=$app --key=enable_downloads --value=$enable_downloads
|
||||
|
|
Loading…
Add table
Reference in a new issue