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

Add session.cookie_httponly, and a default timezone

This commit is contained in:
Salamandar 2020-12-21 14:56:26 +01:00
parent c2f9f56278
commit 8bdce2ecaf
3 changed files with 7 additions and 1 deletions

View file

@ -431,3 +431,6 @@ chdir = __FINALPATH__
php_admin_value[upload_max_filesize] = 10G
php_admin_value[post_max_size] = 10G
php_admin_value[session.cookie_httponly] = 1
php_admin_value[date.timezone] = __TIMEZONE__

View file

@ -121,6 +121,8 @@ ynh_replace_string --match_string="__ADMINMAIL__" --replace_string=$admin_mail -
ynh_replace_string --match_string="__LANGUAGE__" --replace_string=$language --target_file="$config"
ynh_replace_string --match_string="__DOMAIN__" --replace_string=$domain --target_file="$config"
ynh_replace_string --match_string="__PATH__" --replace_string=$path_url --target_file="$config"
timezone="$(cat /etc/timezone)"
ynh_replace_string --match_string="__TIMEZONE__" --replace_string=$timezone --target_file="$config"
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$config"

View file

@ -172,7 +172,8 @@ then
ynh_replace_string --match_string="__LANGUAGE__" --replace_string=$language --target_file="$config"
ynh_replace_string --match_string="__DOMAIN__" --replace_string=$domain --target_file="$config"
ynh_replace_string --match_string="__PATH__" --replace_string=$path_url --target_file="$config"
timezone="$(cat /etc/timezone)"
ynh_replace_string --match_string="__TIMEZONE__" --replace_string=$timezone --target_file="$config"
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$config"
fi