From 64985ab52e691c10191de19709b523fcf39367d8 Mon Sep 17 00:00:00 2001 From: Limezy Date: Wed, 31 Jan 2024 15:37:25 +0700 Subject: [PATCH 1/2] Fix configuration for old installs --- conf/nginx.conf | 1 + scripts/upgrade | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 37886f7..e4ba042 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -37,6 +37,7 @@ location __PATH__/ { fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_index index.php; include fastcgi_params; + fastcgi_intercept_errors on; fastcgi_param REMOTE_USER $remote_user; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $request_filename; diff --git a/scripts/upgrade b/scripts/upgrade index d2e61bc..4c2bb29 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -92,6 +92,16 @@ ynh_add_config --template="../conf/moncycleapp.cron" --destination="/etc/cron.d/ chown root: "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app" +#================================================= +# ADD A CONFIGURATION +#================================================= +ynh_script_progression --message="Adding a configuration file..." --weight=1 + +ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php" + +chmod 400 "$install_dir/config.php" +chown $app:$app "$install_dir/config.php" + #================================================= # END OF SCRIPT #================================================= From 15ee3f44bc94142342ff34678bc170d305655cde Mon Sep 17 00:00:00 2001 From: Limezy Date: Wed, 31 Jan 2024 15:37:53 +0700 Subject: [PATCH 2/2] Update manifest.toml --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 6cd542f..c8cfe36 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Moncycle" description.en = "Menstrual cycle follow-up for natural family planning" description.fr = "Suivi de cycle pour les méthodes naturelles de régulation de naissance" -version = "9.0~ynh3" +version = "9.0~ynh4" maintainers = ["Raoul de Limezy"]