From fcc2dbf87c57c13fd57ab2fc779141857332d163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 16 Jan 2023 09:34:39 +0100 Subject: [PATCH] Fix permissions --- conf/nginx.conf | 2 +- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 508fc0a..9782b91 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,7 +2,7 @@ location __PATH__/ { # Path to source - alias __FINALPATH__/ ; + alias __FINALPATH__/; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; diff --git a/scripts/install b/scripts/install index bdb3caf..2ee1e2d 100755 --- a/scripts/install +++ b/scripts/install @@ -56,7 +56,7 @@ mv ../sources/dist "$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root:www-data "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 3fbf90b..f26e496 100755 --- a/scripts/restore +++ b/scripts/restore @@ -53,7 +53,7 @@ ynh_restore_file "$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root:www-data "$final_path" +chown -R $app:www-data "$final_path" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 7576cdc..a2fd9f7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -76,7 +76,7 @@ fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root:www-data "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION