1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jappix_ynh.git synced 2024-09-03 19:26:19 +02:00
This commit is contained in:
ericgaspar 2021-07-21 14:25:01 +02:00
parent 0c0d61c0c1
commit c96423cb88
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 45 additions and 39 deletions

View file

@ -14,8 +14,6 @@
upgrade=1
backup_restore=1
multi_instance=0
incorrect_path=0
port_already_use=0
change_url=0
;;; Options
Email=

View file

@ -23,37 +23,37 @@
],
"arguments": {
"install" : [
{
"name": "domain",
"type": "domain",
"example": "domain.org"
},
{
"name": "path",
"type": "path",
"example": "/jappix",
"default": "/jappix"
},
{
"name": "name",
"type": "string",
"ask": {
"en": "Choose a name for Jappix",
"fr": "Choisissez un nom pour Jappix"
},
"example": "YunoJappix",
"default": "YunoJappix"
},
{
"name": "language",
"type": "string",
"ask": {
"en": "Choose the default language of Jappix",
"fr": "Choissisez la langue par défaut de Jappix"
},
"choices" : ["en", "fr", "es"],
"default" : "en"
}
{
"name": "domain",
"type": "domain",
"example": "domain.org"
},
{
"name": "path",
"type": "path",
"example": "/jappix",
"default": "/jappix"
},
{
"name": "name",
"type": "string",
"ask": {
"en": "Choose a name for Jappix",
"fr": "Choisissez un nom pour Jappix"
},
"example": "YunoJappix",
"default": "YunoJappix"
},
{
"name": "language",
"type": "string",
"ask": {
"en": "Choose the default language of Jappix",
"fr": "Choissisez la langue par défaut de Jappix"
},
"choices" : ["en", "fr", "es"],
"default" : "en"
}
]
}
}

View file

@ -1,9 +1,17 @@
#!/bin/bash
#=================================================
# SETUP
# COMMON VARIABLES
#=================================================
#=================================================
# FUTUR YNH HELPERS
# PERSONAL HELPERS
#=================================================
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================

View file

@ -19,10 +19,10 @@ ynh_script_progression --message="Loading installation settings..." --weight=1
app=$YNH_APP_INSTANCE_NAME
# Récupère les infos de l'application.
domain=$(ynh_app_setting_get $app domain)
path=$(ynh_app_setting_get $app path)
name=$(ynh_app_setting_get "$app" name)
language=$(ynh_app_setting_get "$app" language)
domain=$(ynh_app_setting_get --app=$app --key=domain)
path=$(ynh_app_setting_get --app=$app --key=path)
name=$(ynh_app_setting_get --app=$app --key=name)
language=$(ynh_app_setting_get --app=$app --key=language)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================