From 6f0ef74b7a5a056f80671383182cf08a10e6fc43 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 19 Jun 2023 18:58:26 +0200 Subject: [PATCH] fix chown --- scripts/upgrade | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index bcb5e30..bd910ec 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -62,9 +62,7 @@ ynh_script_progression --message="Assure correct permissions to $data_dir..." -- chmod 750 "$data_dir" chmod -R o-rwx "$data_dir/" -chown -R $app:www-data "$data_dir/" -#following line is to be sure that the directory has appropriate owner rights (as above commands doesn’t seem to have an effect) -#chown -R $app:www-data "$data_dir/data/media/tracks" +chown -R $app:$app "$data_dir/" #================================================= # SPECIFIC UPGRADE @@ -112,7 +110,7 @@ popd chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" +chown -R $app:$app "$install_dir" #================================================= # SETUP SYSTEMD