From a39239a20cba1700bcdf2e1e7aa6e45efa253191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 27 Mar 2020 14:44:29 +0100 Subject: [PATCH] Fix some bad bug... --- scripts/_common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index ca6f72b..51b2079 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -33,7 +33,10 @@ install_dependance() { set_permission() { chown -R $seafile_user:$seafile_user $final_path # check that this directory exist because in some really old install the data could still be in the main seafile directory + # We also check at the install time when data directory is not already initialised test -e /home/yunohost.app/seafile-data && chown -R $seafile_user:$seafile_user /home/yunohost.app/seafile-data + # Well need to put this here because if test return false, set_permission also return false and the install fail + true } ynh_clean_setup () {