From 8fd28f8611b361ca44282aadf2791b661e148efc Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 18 Sep 2023 15:33:54 +0200 Subject: [PATCH] Fallback to php 7.4 because the issue on CI seems to related to PHP 8.x .. --- manifest.toml | 4 ++-- scripts/install | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/manifest.toml b/manifest.toml index 4b7f693..55d0b7c 100644 --- a/manifest.toml +++ b/manifest.toml @@ -43,7 +43,7 @@ ram.runtime = "50M" [install.language] ask.en = "Choose the application language" ask.fr = "Choisissez la langue de l'application" - type = "string" + type = "choices" choices = ["de", "en", "es", "fr", "it", "pt"] default = "en" @@ -87,7 +87,7 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "postgresql, curl, libzip-dev, php8.1-fpm, php8.1-cli, php8.1-gd, php8.1-mysql, php8.1-xml, php8.1-ldap, php8.1-mbstring, php8.1-pgsql" + packages = "postgresql, curl, libzip-dev, php7.4-fpm, php7.4-cli, php7.4-gd, php7.4-mysql, php7.4-xml, php7.4-ldap, php7.4-mbstring, php7.4-pgsql" [resources.database] type = "postgresql" diff --git a/scripts/install b/scripts/install index 3dfc236..b004c4c 100644 --- a/scripts/install +++ b/scripts/install @@ -107,9 +107,6 @@ chown $app:$app "$install_dir/app/sites/default/settings.php" #================================================= ynh_script_progression --message="Installing database..." --weight=19 -chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" - update-alternatives --set php /usr/bin/php$phpversion ynh_exec_as $app env PATH=$PATH 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 -y --locale="$language" --account-name="admin" --account-pass="$password" --site-name="Framaforms" --site-mail="$admin_mail" 2>&1 ynh_exec_as $app env PATH=$PATH drush @$app variable-set update_notify_emails "$admin_mail"