mirror of
https://github.com/YunoHost-Apps/mumbleserver_ynh.git
synced 2024-09-03 19:46:03 +02:00
fixing some bugs
This commit is contained in:
parent
6c7c5e1e9d
commit
1ab31c16c6
2 changed files with 3 additions and 3 deletions
|
@ -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')
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue