From 8ccd6f35336b756d76a417022ea71ea8234455ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Peterka?= Date: Mon, 26 Oct 2020 11:47:39 +0100 Subject: [PATCH] updgrade creates correct symlink to seafile-data Bugfix: update script was creating symbolic link to seafile-data inside wrong folder ``` lrwxrwxrwx 1 seafile seafile 31 Oct 26 11:21 /opt/yunohost/seafile/seafile-data/seafile-data -> /home/yunohost.app/seafile-data ``` Only one-level of seafile-data is required. --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index dea0f9e..9340cb4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -74,7 +74,7 @@ if [ $final_path == "/var/www/$app" ]; then # Data directory empty, so considere that all data are already in /home/yunohost.app/seafile mv /opt/yunohost/$app/seafile-data/* /home/yunohost.app/seafile-data/ ynh_secure_remove $final_path/seafile_data - ln -s $seafile_data $final_path/seafile_data + ln -s /home/yunohost.app/seafile-data $final_path/ fi ln -s $final_path/logs /var/log/seafile set_permission