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:26:15 +02:00 committed by GitHub
parent 64f07b78ec
commit 9c9b8a3226
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,11 @@ ynh_change_url_nginx_config
# UPDATE CONFIGURATION FILE # 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" ynh_add_config --template="../conf/config.xml" --destination="$data_dir/config.xml"
chmod 750 "$data_dir/config.xml" chmod 750 "$data_dir/config.xml"