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:
parent
9458f79dd8
commit
64f07b78ec
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue