mirror of
https://github.com/YunoHost-Apps/chuwiki_ynh.git
synced 2024-09-03 18:16:18 +02:00
Add options
This commit is contained in:
parent
b9c7356a6d
commit
b48d0ac7ca
3 changed files with 24 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
; Titre de votre wiki
|
; Titre de votre wiki
|
||||||
Title = ChuWiki For YunoHost
|
Title = __TITLE__
|
||||||
|
|
||||||
; Permet de ne pas utiliser le PathInfo
|
; Permet de ne pas utiliser le PathInfo
|
||||||
; Si votre PHP fonctionne en mode CGI, vous devrez passez
|
; Si votre PHP fonctionne en mode CGI, vous devrez passez
|
||||||
|
@ -24,4 +24,4 @@ Renderer = wiki2xhtml
|
||||||
; Smileys, thème et langue à utiliser
|
; Smileys, thème et langue à utiliser
|
||||||
SmileyPath = smileys/dkmsn
|
SmileyPath = smileys/dkmsn
|
||||||
ThemePath = theme/default
|
ThemePath = theme/default
|
||||||
LanguagePath = lang/en
|
LanguagePath = lang/__LANGUAGE__
|
||||||
|
|
|
@ -42,6 +42,26 @@
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"example": "/chuwiki",
|
"example": "/chuwiki",
|
||||||
"default": "/chuwiki"
|
"default": "/chuwiki"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "titre",
|
||||||
|
"type": "string",
|
||||||
|
"ask": {
|
||||||
|
"en": "Choose a title for the wiki you want to create",
|
||||||
|
"fr": "Choisissez un titre pour le wiki que vous souhaitez créer"
|
||||||
|
},
|
||||||
|
"example": "ChuWiki",
|
||||||
|
"default": "ChuWiki"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "language",
|
||||||
|
"type": "string",
|
||||||
|
"ask": {
|
||||||
|
"en": "Choose the application language",
|
||||||
|
"fr": "Choisissez la langue de l'application"
|
||||||
|
},
|
||||||
|
"choices": ["fr", "en"],
|
||||||
|
"default": "fr"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
|
|
|
@ -23,6 +23,7 @@ ynh_abort_if_errors
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url=$YNH_APP_ARG_PATH
|
path_url=$YNH_APP_ARG_PATH
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
title=$YNH_APP_ARG_TITLE
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
|
@ -44,6 +45,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=1
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
||||||
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
||||||
|
ynh_app_setting_set --app=$app --key=title --value=$title
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
|
|
Loading…
Add table
Reference in a new issue