diff --git a/scripts/install b/scripts/install index fd3ef57..aa6d052 100755 --- a/scripts/install +++ b/scripts/install @@ -191,6 +191,8 @@ fi ### `ynh_replace_string` is used to replace a string in a file. ### (It's compatible with sed regular expressions syntax) +ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/.env" + ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/.env" ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$final_path/.env" ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/.env" diff --git a/sources/extra_files/app/.env b/sources/extra_files/app/.env index 0ea9e18..ebf2628 100644 --- a/sources/extra_files/app/.env +++ b/sources/extra_files/app/.env @@ -1,6 +1,6 @@ APP_ENV=production APP_DEBUG=false -APP_LOCALE=en +APP_LOCALE=__LANGUAGE__ APP_URL=https://__DOMAIN____PATH__/index.php APP_KEY=__APP_KEY__ APP_CIPHER=AES-256-CBC