From 4eef2f7600f3a476e50a10ff8154808a9d291806 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 10 Jun 2016 15:59:30 +0200 Subject: [PATCH] [enh] start supporting domain for neutrinet application --- manifest.json | 22 +++++++++++++++++++++- scripts/install | 10 ++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 8c69044..0440ae8 100644 --- a/manifest.json +++ b/manifest.json @@ -12,5 +12,25 @@ "url": "http://worlddomination.be" }, "multi_instance": "false", - "arguments": {} + "arguments": { + "install" : [ + { + "name": "domain", + "ask": { + "en": "Choose a domain for Neutrinet application", + "fr": "Choisissez un domaine pour l'application Neutrinet" + }, + "example": "domain.org" + }, + { + "name": "path", + "ask": { + "en": "Choose a path for Neutrinet application", + "fr": "Choisissez un chemin pour l'application Neutrinet" + }, + "example": "/neutrinet", + "default": "/neutrinet" + } + ] + } } diff --git a/scripts/install b/scripts/install index ff5b5bd..50f03b7 100644 --- a/scripts/install +++ b/scripts/install @@ -1,5 +1,15 @@ set -e +# Retrieve arguments +domain=$1 +path=$2 + +# Check domain/path availability +sudo yunohost app checkurl $domain$path -a neutrinet +if [[ ! $? -eq 0 ]]; then + exit 1 +fi + source ./commons install_renew_cert() { -- GitLab