From 64f07b78ec082a51e56de65f655b421e7c31943a Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 14 Apr 2024 19:25:53 +0200 Subject: [PATCH] Avoid "missing new line" warning --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 568b324..9b6047e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -60,6 +60,11 @@ yunohost service add $app --description="Lidarr daemon" --log="$data_dir/logs/li #================================================= ynh_script_progression --message="Updating the configuration file.." --weight=1 +# Add newline at end of file if required +if [ -e "$data_dir/config.xml" ]; then + sed -i -e '$a\' "$data_dir/config.xml" +fi + ynh_add_config --template="../conf/config.xml" --destination="$data_dir/config.xml" chmod 400 "$data_dir/config.xml"