1
0
Fork 0
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:
tituspijean 2024-04-04 23:09:06 +02:00
parent b4e26eb3a1
commit b6f5b0ac0f
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 7 additions and 1 deletions

View file

@ -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"

View file

@ -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"