1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invoiceninja_ynh.git synced 2024-09-03 19:26:22 +02:00

add language choosing to install

This commit is contained in:
Sebastian Gumprich 2020-05-03 12:04:12 +02:00
parent 4aa129871e
commit abef56e3ea
2 changed files with 3 additions and 1 deletions

View file

@ -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"

View file

@ -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