From 37221c67777a102a600459cd875eaebc7d6cf128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sun, 3 Nov 2019 12:43:58 +0100 Subject: [PATCH] Improve migration from old package --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index e883521..f9b9b48 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -69,6 +69,9 @@ if [ $final_path == "/var/www/$app" ]; then mv /var/www/$app /opt/yunohost/ ynh_system_user_create --username $seafile_user --home_dir $final_path ynh_app_setting_set --app $app --key final_path --value $final_path + test -e /var/log/seafile && rm /var/log/$app + ln -s $final_path/logs /var/log/seafile + sleep 2 set_permission fi