1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/z-push_ynh.git synced 2024-09-03 18:05:58 +02:00

[ehn] Comply with ynh 2.4 package format

This commit is contained in:
Jocelyn Delande 2016-06-13 16:05:45 +02:00
parent 1a80788ae7
commit d202453768
4 changed files with 20 additions and 10 deletions

View file

@ -1,20 +1,30 @@
{ {
"name": "Z-Push", "name": "Z-Push",
"id": "z-push", "id": "z-push",
"packaging_format": 1,
"description": { "description": {
"en": "Z-Push is an open-source application to synchronize ActiveSync", "en": "Z-Push is an open-source application to synchronize ActiveSync",
"fr": "Z-Push est un serveur open source de synchronisation ActiveSync" "fr": "Z-Push est un serveur open source de synchronisation ActiveSync"
}, },
"developer": { "url": "https://z-push.org",
"license": "free",
"maintainer": {
"name": "beudbeud", "name": "beudbeud",
"email": "beudbeud@beudibox.fr", "email": "beudbeud@beudibox.fr"
"url": "https://z-push.org"
}, },
"multi_instance": "true", "requirements": {
"yunohost": ">=2.4.0"
},
"services": [
"nginx",
"php5-fpm"
],
"multi_instance": true,
"arguments": { "arguments": {
"install" : [ "install" : [
{ {
"name": "domain", "name": "domain",
"type": "domain",
"ask": { "ask": {
"en": "Choose a domain for Z-push", "en": "Choose a domain for Z-push",
"fr": "Choisissez un domaine pour Z-push" "fr": "Choisissez un domaine pour Z-push"

View file

@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
# Retrieve arguments # Retrieve arguments
domain=$1 domain=$YNH_APP_ARG_DOMAIN
path="/Microsoft-Server-ActiveSync" path=$YNH_APP_ARG_PATH
app=z-push app=$YNH_APP_INSTANCE_NAME
# Check domain/path availability # Check domain/path availability
sudo yunohost app checkurl $domain$path -a $app sudo yunohost app checkurl $domain$path -a $app

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
app=z-push app=$YNH_APP_INSTANCE_NAME
domain=$(sudo yunohost app setting $app domain) domain=$(sudo yunohost app setting $app domain)
# Cleaning # Cleaning

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Retrieve arguments # Retrieve arguments
app=z-push app=$YNH_APP_INSTANCE_NAME
domain=$(sudo yunohost app setting $app domain) domain=$(sudo yunohost app setting $app domain)
path="/Microsoft-Server-ActiveSync" path="/Microsoft-Server-ActiveSync"