From 3b4603a338e2914d584a4ac1f3cd6f02d3056a81 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 2 Feb 2019 03:40:38 +0100 Subject: [PATCH] Fix path owner --- scripts/install | 2 ++ scripts/upgrade | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index 912cab0..6318705 100755 --- a/scripts/install +++ b/scripts/install @@ -299,6 +299,8 @@ chown -R "$app":"$app" "/var/log/$app" # MAKE SETUP #================================================= +chown -R "$app":"$app" "$final_path" + pushd $final_path sudo -u $app ./writefreely --init-db sudo -u $app ./writefreely --gen-keys diff --git a/scripts/upgrade b/scripts/upgrade index 437464b..c248a83 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -139,6 +139,8 @@ ynh_system_user_create "$app" "$final_path" # MAKE UPGRADE #================================================= +chown -R "$app":"$app" "$final_path" + pushd $final_path sudo -u $app ./writefreely --migrate popd