From 6c7c5e1e9dc33cc2b030a760cc37a7f0ee491713 Mon Sep 17 00:00:00 2001 From: matlink Date: Mon, 10 Nov 2014 20:01:35 +0100 Subject: [PATCH] update now redirected to /dev/null to avoid spamm --- scripts/install | 11 ++++++----- scripts/remove | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 8a79e52..ad9ea02 100644 --- a/scripts/install +++ b/scripts/install @@ -23,16 +23,14 @@ if [[ ! $? -eq 0 ]]; then exit 1 fi -#open port in firewall -sudo yunohost firewall allow Both $port > /dev/null 2>&1 # Save app settings sudo yunohost app setting $app admin -v "$admin" sudo yunohost app setting $app port -v "$port" # install via apt-get -sudo apt-get update -sudo apt-get install -y mumble-server +sudo apt-get update > /dev/null +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 @@ -43,8 +41,11 @@ sudo sed -i "s/registerName=.*/registerName=$registerName/g" $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') +#open port in firewall +sudo yunohost firewall allow Both $port > /dev/null 2>&1 + #starting mumble server -sudo dpkg-reconfigure mumble-server +sudo /etc/init.d/mumble-server start #setting super-user password sudo murmurd -supw $su_passwd diff --git a/scripts/remove b/scripts/remove index 173508a..26b3c5f 100644 --- a/scripts/remove +++ b/scripts/remove @@ -2,5 +2,5 @@ app=mumbleserver $port=$(sudo yunohost app setting $app port) -sudo apt-get autoremove -y mumble-server +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