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