diff --git a/scripts/install b/scripts/install index 7479967..35e360c 100644 --- a/scripts/install +++ b/scripts/install @@ -39,6 +39,8 @@ ynh_install_composer COMPOSER_ALLOW_SUPERUSER=1 "$app" ynh_composer_exec --commands="install" COMPOSER_ALLOW_SUPERUSER=1 "$app" ynh_composer_exec --commands="movim:migrate" +chown -R "$app:www-data" "$install_dir" + #================================================= # SYSTEM CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 0433992..e30fdac 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -46,6 +46,8 @@ ynh_exec_warn_less COMPOSER_ALLOW_SUPERUSER=1 ynh_composer_exec --commands="conf ynh_exec_warn_less COMPOSER_ALLOW_SUPERUSER=1 ynh_composer_exec --commands="update --no-interaction --quiet" ynh_exec_warn_less COMPOSER_ALLOW_SUPERUSER=1 ynh_composer_exec --commands="movim:migrate --quiet" +chown -R "$app:www-data" "$install_dir" + #================================================= # REAPPLY SYSTEM CONFIGURATIONS #=================================================