mirror of
https://github.com/YunoHost-Apps/sonarr_ynh.git
synced 2024-09-03 20:26:19 +02:00
Circumvent missing new line in config.xml
Co-authored-by: Salamandar <6552989+Salamandar@users.noreply.github.com>
This commit is contained in:
parent
b4e26eb3a1
commit
b6f5b0ac0f
2 changed files with 7 additions and 1 deletions
|
@ -31,7 +31,10 @@ ynh_change_url_nginx_config
|
|||
# UPDATE CONFIGURATION FILE
|
||||
#=================================================
|
||||
|
||||
ynh_exec_warn_less ynh_add_config --template="config.xml" --destination="$data_dir/config.xml"
|
||||
# Add newline at end of file if required
|
||||
sed -i -e '$a\' "$data_dir/config.xml"
|
||||
|
||||
ynh_add_config --template="config.xml" --destination="$data_dir/config.xml"
|
||||
|
||||
chown "$app:$app" "$data_dir/config.xml"
|
||||
|
||||
|
|
|
@ -60,6 +60,9 @@ ynh_use_logrotate --non-append --logfile="/var/log/$app/"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Configuring Radarr..." --weight=2
|
||||
|
||||
# Add newline at end of file if required
|
||||
sed -i -e '$a\' "$data_dir/config.xml"
|
||||
|
||||
ynh_add_config --template="config.xml" --destination="$data_dir/config.xml"
|
||||
|
||||
chmod 750 "$data_dir"
|
||||
|
|
Loading…
Add table
Reference in a new issue