mirror of
https://github.com/YunoHost-Apps/mumbleserver_ynh.git
synced 2024-09-03 19:46:03 +02:00
update now redirected to /dev/null to avoid spamm
This commit is contained in:
parent
2a76b0653b
commit
6c7c5e1e9d
2 changed files with 7 additions and 6 deletions
|
@ -23,16 +23,14 @@ if [[ ! $? -eq 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#open port in firewall
|
|
||||||
sudo yunohost firewall allow Both $port > /dev/null 2>&1
|
|
||||||
|
|
||||||
# Save app settings
|
# Save app settings
|
||||||
sudo yunohost app setting $app admin -v "$admin"
|
sudo yunohost app setting $app admin -v "$admin"
|
||||||
sudo yunohost app setting $app port -v "$port"
|
sudo yunohost app setting $app port -v "$port"
|
||||||
|
|
||||||
# install via apt-get
|
# install via apt-get
|
||||||
sudo apt-get update
|
sudo apt-get update > /dev/null
|
||||||
sudo apt-get install -y mumble-server
|
sudo apt-get install -y mumble-server > /dev/null 2>&1
|
||||||
|
|
||||||
#configuring with given settings
|
#configuring with given settings
|
||||||
sudo sed -i "s/welcometext=.*/welcometext=$welcometext/g" $mumble_conf
|
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
|
#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')
|
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
|
#starting mumble server
|
||||||
sudo dpkg-reconfigure mumble-server
|
sudo /etc/init.d/mumble-server start
|
||||||
|
|
||||||
#setting super-user password
|
#setting super-user password
|
||||||
sudo murmurd -supw $su_passwd
|
sudo murmurd -supw $su_passwd
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
app=mumbleserver
|
app=mumbleserver
|
||||||
$port=$(sudo yunohost app setting $app port)
|
$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
|
sudo yunohost firewall disallow Both $port > /dev/null 2>&1
|
Loading…
Add table
Reference in a new issue