From f849d9304a1b5ae674d1a1b6911777e8f261a8a5 Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Fri, 18 Mar 2016 20:26:23 +0100 Subject: [PATCH] install updated --- scripts/install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/install b/scripts/install index 6e271c0..8533ad2 100755 --- a/scripts/install +++ b/scripts/install @@ -8,10 +8,17 @@ app=sogo # Retrieve arguments domain=$1 admin=$2 +path='/SOGo' is_public=$3 codename=$(lsb_release -c -s) +# Check domain/path availability +sudo yunohost app checkurl $domain$path -a bolt +if [[ ! $? -eq 0 ]]; then + exit 1 +fi + # Save app settings sudo yunohost app setting $app admin -v "$admin" sudo yunohost app setting $app is_public -v "$is_public"