From 9c9b8a3226f4db3f42904e63824a7171720f9de1 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 14 Apr 2024 19:26:15 +0200 Subject: [PATCH] =?UTF-8?q?Avoid=20"missing=20new=20line"=20warning=C2=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/change_url | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index aa9bf25..f89bc45 100755 --- a/scripts/change_url +++ b/scripts/change_url @@ -31,6 +31,11 @@ ynh_change_url_nginx_config # UPDATE CONFIGURATION FILE #================================================= +# 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 750 "$data_dir/config.xml"