1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00
This commit is contained in:
ericgaspar 2021-01-13 09:30:08 +01:00
parent 547c9f0099
commit 43fcfdec6f
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 9 additions and 9 deletions

View file

@ -81,10 +81,10 @@
"fr": "Choisissez la version que vous souhaitez installer" "fr": "Choisissez la version que vous souhaitez installer"
}, },
"help": { "help": {
"en": "Use Team Edition for the open source version (ARM, ARM64 and x86-64 support) or Entreprise edition if you want to use a license (x86-64 support only)", "en": "Use Team Edition for the open source version (ARM, ARM64 and x86-64 support) or Enterprise Edition if you want to use a license (x86-64 support only)",
"fr": "Utilisez Team Edition pour la version open source (prise en charge ARM, ARM64 et x86-64) ou Entreprise Edition si vous souhaitez utiliser une licence (prise en charge x86-64 uniquement)" "fr": "Utilisez Team Edition pour la version open source (prise en charge ARM, ARM64 et x86-64) ou Enterprise Edition si vous souhaitez utiliser une licence (prise en charge x86-64 uniquement)"
}, },
"choices": ["Entreprise", "Team"], "choices": ["Enterprise", "Team"],
"default": "Team" "default": "Team"
}, },
{ {

View file

@ -97,9 +97,9 @@ ynh_script_progression --message="Setting up source files..." --weight=3
ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
if [ "$version" = "Entreprise" ]; then if [ "$version" = "Enterprise" ]; then
# Get Entreprise binary path # Get Enterprise binary path
ynh_setup_source --dest_dir="$final_path" --source_id="entreprise" ynh_setup_source --dest_dir="$final_path" --source_id="enterprise"
elif [ "$version" = "Team" ]; then elif [ "$version" = "Team" ]; then
# Get Team binary path # Get Team binary path
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" ynh_setup_source --dest_dir="$final_path" --source_id="$architecture"

View file

@ -69,7 +69,7 @@ fi
# If version setting doesn't exist # If version setting doesn't exist
if [ -z "$version" ]; then if [ -z "$version" ]; then
version="Team" version="Enterprise"
ynh_app_setting_set --app=$app --key=version --value=$version ynh_app_setting_set --app=$app --key=version --value=$version
fi fi
@ -113,8 +113,8 @@ then
# Remove the app directory securely # Remove the app directory securely
ynh_secure_remove --file="$final_path" ynh_secure_remove --file="$final_path"
if [ "$version" = "Entreprise" ]; then if [ "$version" = "Enterprise" ]; then
ynh_setup_source --dest_dir="$final_path" --source_id="entreprise" ynh_setup_source --dest_dir="$final_path" --source_id="enterprise"
elif [ "$version" = "Team" ]; then elif [ "$version" = "Team" ]; then
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" ynh_setup_source --dest_dir="$final_path" --source_id="$architecture"
fi fi