diff --git a/scripts/install b/scripts/install index 47c9ff7..1845838 100644 --- a/scripts/install +++ b/scripts/install @@ -136,8 +136,10 @@ ynh_replace_string --match_string="__MYSQLUSER__" --replace_string=$db_name --ta ynh_replace_string --match_string="__MYSQLPASSWORD__" --replace_string="$db_pwd" --target_file="$application_file" ynh_replace_string --match_string="__LANGTOCHANGE__" --replace_string=$lang --target_file="$application_file" ynh_replace_string --match_string="__PLUGINSTOENABLE__" --replace_string="$plugins" --target_file="$application_file" -ynh_replace_string --match_string="__TIME_ZONE__" --replace_string="$(date +%:::z)" --target_file="$application_file" - +# FIXME Temporary fix for rainloop, waiting for https://github.com/YunoHost/yunohost/pull/752 to be released. +# ynh_replace_string --match_string="__TIME_ZONE__" --replace_string="$(date +%:::z)" --target_file="$application_file" +timezone="$(date +%:::z)" +ynh_replace_string --match_string="__TIME_ZONE__" --replace_string="${timezone//-/\\-}" --target_file="$application_file" # Set admin password php ../conf/config.php --index="$final_path/app/index.php" --password="$password" diff --git a/scripts/upgrade b/scripts/upgrade index db1f6cf..5e9cee0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -122,7 +122,10 @@ ynh_add_fpm_config ynh_script_progression --message="Upgrading rainloop configuration..." # Upgrade time_offset value for fail2ban -ynh_replace_string --match_string="^time_offset = .*" --replace_string="time_offset = $(date +%:::z)" --target_file="$final_path/app/data/_data_/_default_/configs/application.ini" +# FIXME Temporary fix for rainloop, waiting for https://github.com/YunoHost/yunohost/pull/752 to be released. +# ynh_replace_string --match_string="^time_offset = .*" --replace_string="time_offset = $(date +%:::z)" --target_file="$final_path/app/data/_data_/_default_/configs/application.ini" +timezone="$(date +%:::z)" +ynh_replace_string --match_string="^time_offset = .*" --replace_string="time_offset = ${timezone//-/\\-}" --target_file="$final_path/app/data/_data_/_default_/configs/application.ini" # update SSO cp ../sources/sso/sso.php "$final_path/index.php"