From 050cd9101389d98afea72787b27418ee73709f09 Mon Sep 17 00:00:00 2001 From: matlink Date: Mon, 10 Nov 2014 21:13:58 +0100 Subject: [PATCH] fix bug --- scripts/install | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/scripts/install b/scripts/install index 34b683f..3b58653 100644 --- a/scripts/install +++ b/scripts/install @@ -1,6 +1,8 @@ #!/bin/bash -exec > >(tee /tmp/mumble-install.log) -exec 2>&1 + +#debug commands +#exec > >(tee /tmp/mumble-install.log) +#exec 2>&1 app=mumbleserver # Retrieve arguments @@ -11,21 +13,14 @@ port=$4 registerName=$5 mumble_conf=/etc/mumble-server.ini -# Check user -sudo yunohost user list --json | grep -q "\"username\": \"$admin\"" -if [[ ! $? -eq 0 ]]; then -echo "Wrong user" - exit 1 -fi + # Check port availability sudo yunohost app checkport $port if [[ ! $? -eq 0 ]]; then exit 1 fi - # Save app settings -sudo yunohost app setting $app admin -v "$admin" sudo yunohost app setting $app port -v "$port" # install via apt-get