From cb4f00514848bd547aef7be397079aa48c7c047b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sun, 3 Nov 2019 17:19:25 +0100 Subject: [PATCH] Fix migration from old package --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index f9b9b48..8b7c531 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -66,12 +66,12 @@ fi if [ $final_path == "/var/www/$app" ]; then final_path="/opt/yunohost/$app" - mv /var/www/$app /opt/yunohost/ + mkdir -p /opt/yunohost + mv /var/www/$app /opt/yunohost/$app 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