mirror of
https://github.com/YunoHost-Apps/yourls_ynh.git
synced 2024-09-03 20:35:59 +02:00
Fix
This commit is contained in:
parent
5777091d44
commit
900b9bb018
2 changed files with 13 additions and 1 deletions
|
@ -53,7 +53,17 @@
|
|||
{
|
||||
"name": "password",
|
||||
"type": "password"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "language",
|
||||
"type": "string",
|
||||
"ask": {
|
||||
"en": "Choose the application language",
|
||||
"fr": "Choisissez la langue de l'application"
|
||||
},
|
||||
"choices": ["fr-FR", "en-US"],
|
||||
"default": "fr-FR"
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@ path_url=$YNH_APP_ARG_PATH
|
|||
admin=$YNH_APP_ARG_ADMIN
|
||||
password="$YNH_APP_ARG_PASSWORD"
|
||||
random=$(ynh_string_random --length=24)
|
||||
language=$YNH_APP_ARG_LANGUAGE
|
||||
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
|
@ -87,6 +88,7 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
|||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path"
|
||||
|
||||
# Install French language
|
||||
ynh_setup_source --dest_dir="$final_path/user/languages" --source_id="fr"
|
||||
|
||||
# copy index file
|
||||
|
|
Loading…
Add table
Reference in a new issue