mirror of
https://github.com/YunoHost/test_apps.git
synced 2024-09-03 20:06:29 +02:00
Merge 2c6a4a1442
into 3120381ec1
This commit is contained in:
commit
c2dbe41492
7 changed files with 93 additions and 0 deletions
1
ldap_user_app_ynh/conf/empty
Normal file
1
ldap_user_app_ynh/conf/empty
Normal file
|
@ -0,0 +1 @@
|
|||
|
29
ldap_user_app_ynh/manifest.json
Normal file
29
ldap_user_app_ynh/manifest.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
11
ldap_user_app_ynh/scripts/backup
Normal file
11
ldap_user_app_ynh/scripts/backup
Normal 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
|
13
ldap_user_app_ynh/scripts/change_url
Normal file
13
ldap_user_app_ynh/scripts/change_url
Normal 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)
|
17
ldap_user_app_ynh/scripts/install
Normal file
17
ldap_user_app_ynh/scripts/install
Normal 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
|
11
ldap_user_app_ynh/scripts/remove
Normal file
11
ldap_user_app_ynh/scripts/remove
Normal 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
|
11
ldap_user_app_ynh/scripts/restore
Normal file
11
ldap_user_app_ynh/scripts/restore
Normal 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
|
Loading…
Add table
Reference in a new issue