mirror of
https://github.com/YunoHost-Apps/sonarr_ynh.git
synced 2024-09-03 20:26:19 +02:00
hotfix: do not fail if config file is missing
This commit is contained in:
parent
baa94d33bd
commit
4a50da79d3
2 changed files with 6 additions and 2 deletions
|
@ -32,7 +32,9 @@ ynh_change_url_nginx_config
|
|||
#=================================================
|
||||
|
||||
# Add newline at end of file if required
|
||||
sed -i -e '$a\' "$data_dir/config.xml"
|
||||
if [ -e "$data_dir/config.xml" ]; then
|
||||
sed -i -e '$a\' "$data_dir/config.xml"
|
||||
fi
|
||||
|
||||
ynh_add_config --template="config.xml" --destination="$data_dir/config.xml"
|
||||
|
||||
|
|
|
@ -61,7 +61,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"
|
||||
if [ -e "$data_dir/config.xml" ]; then
|
||||
sed -i -e '$a\' "$data_dir/config.xml"
|
||||
fi
|
||||
|
||||
ynh_add_config --template="config.xml" --destination="$data_dir/config.xml"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue