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