Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create app for test ldap app user #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ldap_user_app_ynh/conf/empty
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

29 changes: 29 additions & 0 deletions ldap_user_app_ynh/manifest.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]"
},
"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 changes: 11 additions & 0 deletions ldap_user_app_ynh/scripts/backup
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions ldap_user_app_ynh/scripts/change_url
Original file line number Diff line number Diff line change
@@ -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 changes: 17 additions & 0 deletions ldap_user_app_ynh/scripts/install
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions ldap_user_app_ynh/scripts/remove
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions ldap_user_app_ynh/scripts/restore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

#=================================================
# GENERIC START
#=================================================

# Source YunoHost helpers
source /usr/share/yunohost/helpers

# Stop script if errors
ynh_abort_if_errors