From 2159bb2dd3ec7665a71c673ed95c29b772e14e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 24 Mar 2024 12:51:27 +0100 Subject: [PATCH] Fix permission after running composer as root --- scripts/install | 2 ++ scripts/upgrade | 2 ++ 2 files changed, 4 insertions(+) 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 #=================================================