1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lidarr_ynh.git synced 2024-09-03 19:35:58 +02:00

Avoid "missing new line" warning

This commit is contained in:
tituspijean 2024-04-14 19:25:53 +02:00 committed by GitHub
parent 9458f79dd8
commit 64f07b78ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 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" ynh_add_config --template="../conf/config.xml" --destination="$data_dir/config.xml"
chmod 400 "$data_dir/config.xml" chmod 400 "$data_dir/config.xml"