From 0559ed4ad782f2a5628bc335f96e946de4f5b05a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sun, 10 Mar 2019 13:42:32 +0100 Subject: [PATCH] fix data directory permission after upgrade --- scripts/upgrade | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 6c9d7b5..2926b9e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -134,12 +134,14 @@ ynh_add_systemd_config # Set permissions on app files chown -R root: $final_path -# If data directory doesn't exists, create it and setup permissions +# If data directory doesn't exists if [ -z $final_path/data ]; then mkdir $final_path/data - chown -R $app $final_path/data fi +# check data directory permission +chown -R $app: $final_path/data + #================================================= # SETUP SSOWAT #=================================================