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 upgrade=1
backup_restore=1 backup_restore=1
multi_instance=0 multi_instance=0
incorrect_path=0
port_already_use=0
change_url=0 change_url=0
;;; Options ;;; Options
Email= Email=

View file

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

View file

@ -1,9 +1,17 @@
#!/bin/bash #!/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 app=$YNH_APP_INSTANCE_NAME
# Récupère les infos de l'application. # Récupère les infos de l'application.
domain=$(ynh_app_setting_get $app domain) domain=$(ynh_app_setting_get --app=$app --key=domain)
path=$(ynh_app_setting_get $app path) path=$(ynh_app_setting_get --app=$app --key=path)
name=$(ynh_app_setting_get "$app" name) name=$(ynh_app_setting_get --app=$app --key=name)
language=$(ynh_app_setting_get "$app" language) language=$(ynh_app_setting_get --app=$app --key=language)
final_path=$(ynh_app_setting_get --app=$app --key=final_path) final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#================================================= #=================================================