1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00

Fix permission after running composer as root

This commit is contained in:
Salamandar 2024-03-24 12:51:27 +01:00
parent 91abda4eed
commit 2159bb2dd3
2 changed files with 4 additions and 0 deletions

View file

@ -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
#=================================================

View file

@ -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
#=================================================