From 0e170b49c43802680262feeed3696820254604aa Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 3 Apr 2019 02:49:10 +0200 Subject: [PATCH] move datadir owning --- scripts/install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index b0e586b..35c48af 100644 --- a/scripts/install +++ b/scripts/install @@ -144,6 +144,10 @@ datadir="/home/yunohost.app/${app}/storage" # Create app folders mkdir -p "$datadir" + +# Give permission to the datadir +chown -R "$app":"$app" "$datadir" + #================================================= # BUILD YARN DEPENDENCIES #================================================= @@ -221,8 +225,6 @@ ynh_send_readme_to_admin "$message" # Set permissions to app files chown -R "$app":"$app" $final_path -# Give permission to the datadir -chown -R "$app":"$app" "$datadir" #================================================= # SETUP LOGROTATE