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.
This commit is contained in:
Tomáš Peterka 2020-10-26 11:47:39 +01:00 committed by Josue-T
parent 754d085c8f
commit 079eb9ad9b

View file

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