From c788c42bb0ab6d548c709048cb43b9f084197619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 16 Mar 2024 14:25:35 +0100 Subject: [PATCH] Fix install --- scripts/install | 3 +++ scripts/upgrade | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index a8674ca..e910eb3 100644 --- a/scripts/install +++ b/scripts/install @@ -74,6 +74,9 @@ chown "$app:$app" "$install_dir/app/sites/default/settings.php" #================================================= ynh_script_progression --message="Installing database..." --weight=19 +# Chown from composer/drush install +chown -R "$app:www-data" "$install_dir" + _ynh_exec_with_drush_php drush "@$app" site-install framaforms_org \ install_configure_form.site_contact_url="https://forum.yunohost.org/t/framaforms-create-polls-using-drag-and-drop/8208" \ install_configure_form.site_default_country=FR \ diff --git a/scripts/upgrade b/scripts/upgrade index 36f6423..a1faeec 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -42,6 +42,9 @@ ynh_script_progression --message="Upgrading Drupal..." --weight=30 ynh_backup_if_checksum_is_different --file="$install_dir/app/sites/default/settings.php" +# Chown from composer/drush install +chown -R "$app:www-data" "$install_dir" + pushd "$install_dir" _ynh_exec_with_drush_php drush "@$app" variable-set --exact maintenance_mode 1 _ynh_exec_with_drush_php drush "@$app" cache-clear all