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

Merge pull request #6 from Limezy/fix-session-lifetime

Fix session lifetime
This commit is contained in:
Limezy 2023-01-26 01:17:03 +07:00 committed by GitHub
commit 09e71893d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 7 deletions

View file

@ -10,3 +10,7 @@
; php_admin_value[max_input_time] = 300 ; php_admin_value[max_input_time] = 300
; php_admin_value[memory_limit] = 256M ; php_admin_value[memory_limit] = 256M
; php_admin_flag[short_open_tag] = On ; php_admin_flag[short_open_tag] = On
; Session lifetime to avoid disconnections on PWA mode
php_admin_value[session.gc_maxlifetime] = 2592000
php_admin_value[session.cookie_lifetime] = 2592000

View file

@ -6,7 +6,7 @@
"en": "Menstrual cycle follow-up for natural family planning", "en": "Menstrual cycle follow-up for natural family planning",
"fr": "Suivi de cycle pour les méthodes naturelles de régulation de naissance" "fr": "Suivi de cycle pour les méthodes naturelles de régulation de naissance"
}, },
"version": "7.0~ynh1", "version": "7.0~ynh2",
"url": "https://moncycle.app", "url": "https://moncycle.app",
"upstream": { "upstream": {
"license": "CC-BY-NC-SA-4.0", "license": "CC-BY-NC-SA-4.0",

View file

@ -102,8 +102,8 @@ popd
ynh_script_progression --message="Configuring PHP-FPM..." --weight=1 ynh_script_progression --message="Configuring PHP-FPM..." --weight=1
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage="low" --footprint="low"
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
ynh_add_fpm_config --usage="low" --footprint="low"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION

View file

@ -74,6 +74,10 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
# Void and recreate final_path
ynh_secure_remove --file="$final_path"
ynh_exec_warn_less mkdir "$final_path"
if [ "$upgrade_type" == "UPGRADE_APP" ] if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_script_progression --message="Upgrading source files..." --weight=1
@ -104,8 +108,8 @@ ynh_install_app_dependencies $pkg_dependencies
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --phpversion=$phpversion --usage="low" --footprint="low"
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
ynh_add_fpm_config --phpversion=$phpversion --usage="low" --footprint="low"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -118,12 +122,12 @@ ynh_add_nginx_config
#================================================= #=================================================
# CONFIGURATION UPGRADE # CONFIGURATION UPGRADE
#================================================= #=================================================
#ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_script_progression --message="Adding a configuration file..." --weight=1
#ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php" ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php"
#chmod 400 "$final_path/config.php" chmod 400 "$final_path/config.php"
#chown $app:$app "$final_path/config.php" chown $app:$app "$final_path/config.php"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION