This commit is contained in:
Josue-T 2023-10-14 00:47:41 -07:00 committed by GitHub
commit c2dbe41492
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 93 additions and 0 deletions

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,29 @@
{
"name": "LDAP user app Test",
"id": "ldap_user_app",
"description": {
"en": "Dummy app to test permissions"
},
"license": "GPL-3+",
"license": "Apache-2.0",
"maintainer": {
"name": "Josué Tille",
"email": "josue@tille.ch"
},
"requirements": {
"yunohost": ">> 3.3.0"
},
"multi_instance": false,
"arguments": {
"install" : [
{
"name": "domain",
"type": "domain",
"ask": {
"en": "Choose a domain for permissions_app"
},
"example": "domain.org"
}
]
}
}

View file

@ -0,0 +1,11 @@
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# Source YunoHost helpers
source /usr/share/yunohost/helpers
# Stop script if errors
ynh_abort_if_errors

View file

@ -0,0 +1,13 @@
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# Source YunoHost helpers
source /usr/share/yunohost/helpers
# Stop script if errors
ynh_abort_if_errors
# Nothing to do ... Permission using relative urls don't need to be changed, only the domain/path setting (handled in the core)

View file

@ -0,0 +1,17 @@
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# Source YunoHost helpers
source /usr/share/yunohost/helpers
# Stop script if errors
ynh_abort_if_errors
# Retrieve arguments
app=$YNH_APP_INSTANCE_NAME
domain=$YNH_APP_ARG_DOMAIN
ynh_ldap_user_create --password="RAND0MP4sSw0RO" --home_dir=/var/www/$app --mail=$app@$domain --use_shell

View file

@ -0,0 +1,11 @@
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# Source YunoHost helpers
source /usr/share/yunohost/helpers
# Stop script if errors
ynh_abort_if_errors

View file

@ -0,0 +1,11 @@
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# Source YunoHost helpers
source /usr/share/yunohost/helpers
# Stop script if errors
ynh_abort_if_errors