diff --git a/conf/navidrome.toml b/conf/navidrome.toml index 70f8e37..4ae039f 100644 --- a/conf/navidrome.toml +++ b/conf/navidrome.toml @@ -28,6 +28,9 @@ DataFolder = "__CONFIG_PATH__" # Folder where your music library is stored. Can be read-only MusicFolder = "/home/yunohost.multimedia/share/Music" +# Enable the option in the UI to download music/albums/artists/playlists from the server +EnableDownloads = "true" + #Change background image used in the Login page UILoginBackgroundUrl = "" diff --git a/scripts/upgrade b/scripts/upgrade index 6e42272..1f794d0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -80,10 +80,10 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=5 - # # Create a temporary directory - #tmpdir="$(mktemp -d)" - # # Backup the config file in the temp dir - # cp -a "/var/lib/$app/navidrome.toml" "$tmpdir/navidrome.toml" + # Create a temporary directory + tmpdir="$(mktemp -d)" + # Backup the config file in the temp dir + cp -a "/var/lib/$app/navidrome.toml" "$tmpdir/navidrome.toml" # Remove the app directory securely ynh_secure_remove --file=$final_path @@ -91,11 +91,11 @@ then # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir=$final_path --source_id="$architecture" - # # Copy the admin saved settings from tmp directory to final config path - # cp -a "$tmpdir/navidrome.toml" "/var/lib/$app/navidrome.toml" + # Copy the admin saved settings from tmp directory to final config path + cp -a "$tmpdir/navidrome.toml" "/var/lib/$app/navidrome.toml" - # # Remove the tmp directory securely - # ynh_secure_remove --file="$tmpdir" + # Remove the tmp directory securely + ynh_secure_remove --file="$tmpdir" fi #================================================= @@ -120,7 +120,7 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=2 config_path="/var/lib/$app" -ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml" +#ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml" # Create a dedicated systemd config ynh_replace_string --match_string="__CONFIG_PATH__" --replace_string="$config_path" --target_file="../conf/systemd.service"