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:
parent
1a80788ae7
commit
d202453768
4 changed files with 20 additions and 10 deletions
|
@ -1,20 +1,30 @@
|
|||
{
|
||||
"name": "Z-Push",
|
||||
"id": "z-push",
|
||||
"packaging_format": 1,
|
||||
"description": {
|
||||
"en": "Z-Push is an open-source application to synchronize ActiveSync",
|
||||
"fr": "Z-Push est un serveur open source de synchronisation ActiveSync"
|
||||
},
|
||||
"developer": {
|
||||
"url": "https://z-push.org",
|
||||
"license": "free",
|
||||
"maintainer": {
|
||||
"name": "beudbeud",
|
||||
"email": "beudbeud@beudibox.fr",
|
||||
"url": "https://z-push.org"
|
||||
"email": "beudbeud@beudibox.fr"
|
||||
},
|
||||
"multi_instance": "true",
|
||||
"requirements": {
|
||||
"yunohost": ">=2.4.0"
|
||||
},
|
||||
"services": [
|
||||
"nginx",
|
||||
"php5-fpm"
|
||||
],
|
||||
"multi_instance": true,
|
||||
"arguments": {
|
||||
"install" : [
|
||||
{
|
||||
"name": "domain",
|
||||
"type": "domain",
|
||||
"ask": {
|
||||
"en": "Choose a domain for Z-push",
|
||||
"fr": "Choisissez un domaine pour Z-push"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Retrieve arguments
|
||||
domain=$1
|
||||
path="/Microsoft-Server-ActiveSync"
|
||||
app=z-push
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path=$YNH_APP_ARG_PATH
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
# Check domain/path availability
|
||||
sudo yunohost app checkurl $domain$path -a $app
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
app=z-push
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
|
||||
# Cleaning
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Retrieve arguments
|
||||
app=z-push
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
path="/Microsoft-Server-ActiveSync"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue