1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/sonarr_ynh.git synced 2024-09-03 20:26:19 +02:00

Fix upgrade

This commit is contained in:
Salamandar 2024-02-06 16:36:53 +01:00
parent 073bc71449
commit f9cb23fa1e

View file

@ -23,8 +23,8 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd"
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if [ -d "$data_dir/logs" ]; then
ynh_secure_remove --file="/var/log/$app"
if [ ! -L "$data_dir/logs" ]; then
ynh_secure_remove --file="$data_dir/logs"
ln -s "/var/log/$app" "$data_dir/logs"
fi