From 088b1ade9c9e0a635040535fd7cb38c7c66b2822 Mon Sep 17 00:00:00 2001 From: src386 Date: Mon, 10 Aug 2015 17:34:50 +0200 Subject: [PATCH] Check port availability --- TODO | 1 - scripts/install | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 70e13f6..b7a6af5 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,3 @@ -- Change port ? - SHA password - URL rewriting - Cache optimisation diff --git a/scripts/install b/scripts/install index bd68566..3181924 100644 --- a/scripts/install +++ b/scripts/install @@ -15,6 +15,13 @@ if [[ ! $? -eq 0 ]]; then exit 1 fi +# Check port availability +sudo yunohost app checkport $port; +if [[ ! $? -eq 0 ]]; then +echo -e "Port already in used"; +exit 1 +fi + sudo yunohost app setting movim admin -v $admin sudo yunohost app setting movim public_site -v $public_site