1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wekan_ynh.git synced 2024-09-03 20:36:09 +02:00

Merge pull request #83 from YunoHost-Apps/fix-ldap-admin

Add admin creation during install
This commit is contained in:
yalh76 2020-04-01 19:39:31 +02:00 committed by GitHub
commit 64e23a6f53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 2 deletions

View file

@ -28,7 +28,8 @@ Wekan is an open-source kanban board (task manager and organizer)
## Configuration
As LDAP authentification is enabled by default, wekan admins correspond to the permission `Wekan Admin`. To add an admin account, you can:
As LDAP authentification is enabled by default, wekan admins correspond to the permission `Wekan Admin`. The user you choose during installation is member of this group.
To add an admin account, you can:
- [with the webadmin] go to Users > Groups and permissions > Add the user to the permission `Wekan Admin`
- [or with the command line] `yunohost user permission update wekan.admin -a the_user_to_add`

View file

@ -2,6 +2,7 @@
; Manifest
domain="domain.tld" (DOMAIN)
path="/path" (PATH)
admin="john" (USER)
is_public=1 (PUBLIC|public=1|private=0)
; Checks
pkg_linter=1

View file

@ -46,6 +46,15 @@
"example": "/wekan",
"default": "/wekan"
},
{
"name": "admin",
"type": "user",
"ask": {
"en": "Choose an admin user",
"fr": "Choisissez ladministrateur"
},
"example": "johndoe"
},
{
"name": "is_public",
"type": "boolean",

View file

@ -29,6 +29,7 @@ ynh_print_info --message="Retrieving arguments from the manifest..."
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
admin=$YNH_APP_ARG_ADMIN
is_public=$YNH_APP_ARG_IS_PUBLIC
app=$YNH_APP_INSTANCE_NAME
@ -197,7 +198,7 @@ fi
#=================================================
ynh_print_info --message="Configuring SSOwat..."
ynh_permission_create --permission="admin"
ynh_permission_create --permission="admin" --allowed "$admin"
# Make app public if necessary
if [ $is_public -eq 1 ]