1
0
Fork 0
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:
ericgaspar 2021-06-08 10:17:44 +02:00
parent b9c7356a6d
commit b48d0ac7ca
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 24 additions and 2 deletions

View file

@ -1,5 +1,5 @@
; Titre de votre wiki
Title = ChuWiki For YunoHost
Title = __TITLE__
; Permet de ne pas utiliser le PathInfo
; Si votre PHP fonctionne en mode CGI, vous devrez passez
@ -24,4 +24,4 @@ Renderer = wiki2xhtml
; Smileys, thème et langue à utiliser
SmileyPath = smileys/dkmsn
ThemePath = theme/default
LanguagePath = lang/en
LanguagePath = lang/__LANGUAGE__

View file

@ -42,6 +42,26 @@
"type": "path",
"example": "/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",

View file

@ -23,6 +23,7 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC
title=$YNH_APP_ARG_TITLE
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=path --value=$path_url
ynh_app_setting_set --app=$app --key=title --value=$title
#=================================================
# CREATE DEDICATED USER