diff --git a/README.md b/README.md index f8fcdd8..6c4d888 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/check_process b/check_process index 8a7cdfd..1919bb5 100644 --- a/check_process +++ b/check_process @@ -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 diff --git a/manifest.json b/manifest.json index 328a406..602a836 100644 --- a/manifest.json +++ b/manifest.json @@ -46,6 +46,15 @@ "example": "/wekan", "default": "/wekan" }, + { + "name": "admin", + "type": "user", + "ask": { + "en": "Choose an admin user", + "fr": "Choisissez l’administrateur" + }, + "example": "johndoe" + }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index f7dafd1..a02a7dd 100755 --- a/scripts/install +++ b/scripts/install @@ -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 ]