From 1ab31c16c6fc4a2fb53fb20b098d5c974a98884b Mon Sep 17 00:00:00 2001 From: matlink Date: Mon, 10 Nov 2014 20:09:39 +0100 Subject: [PATCH] fixing some bugs --- scripts/install | 4 ++-- scripts/remove | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index ad9ea02..dcb42f3 100644 --- a/scripts/install +++ b/scripts/install @@ -29,14 +29,14 @@ sudo yunohost app setting $app admin -v "$admin" sudo yunohost app setting $app port -v "$port" # install via apt-get -sudo apt-get update > /dev/null +sudo apt-get update > /dev/null 2>&1 sudo apt-get install -y mumble-server > /dev/null 2>&1 #configuring with given settings sudo sed -i "s/welcometext=.*/welcometext=$welcometext/g" $mumble_conf sudo sed -i "s/port=.*/port=$port/g" $mumble_conf sudo sed -i "s/serverpassword=.*/serverpassword=$server_password/g" $mumble_conf -sudo sed -i "s/registerName=.*/registerName=$registerName/g" $mumble_conf +sudo echo "registerName=$registerName" | sudo tee -a $mumble_conf #generating random password for super-user su_passwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p') diff --git a/scripts/remove b/scripts/remove index 26b3c5f..bca27d9 100644 --- a/scripts/remove +++ b/scripts/remove @@ -1,6 +1,6 @@ #!/bin/bash app=mumbleserver -$port=$(sudo yunohost app setting $app port) +port=$(sudo yunohost app setting $app port) sudo apt-get autoremove -y mumble-server > /dev/null 2>&1 sudo yunohost firewall disallow Both $port > /dev/null 2>&1 \ No newline at end of file