From 8c36477b615c2780827542fdc9d5bfc58b349b9a Mon Sep 17 00:00:00 2001 From: Moul Date: Tue, 29 Dec 2015 22:40:53 +0400 Subject: [PATCH] Flash back to old way to check domain/path availability. --- scripts/install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 25c2987..66b872e 100755 --- a/scripts/install +++ b/scripts/install @@ -15,8 +15,10 @@ password=$7 #cpu=`expr $7 / 100` # Check domain/path availability -sudo yunohost app checkurl $domain$path -a $app \ - || (echo "Path not available: $domain$path" && exit 1) +sudo yunohost app checkurl $domain$path -a $app +if [[ ! $? -eq 0 ]]; then + exit 1 +fi # Check port availability sudo yunohost app checkport $port