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
1ab31c16c6
commit
a69100a408
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ sudo apt-get install -y mumble-server > /dev/null 2>&1
|
||||||
sudo sed -i "s/welcometext=.*/welcometext=$welcometext/g" $mumble_conf
|
sudo sed -i "s/welcometext=.*/welcometext=$welcometext/g" $mumble_conf
|
||||||
sudo sed -i "s/port=.*/port=$port/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/serverpassword=.*/serverpassword=$server_password/g" $mumble_conf
|
||||||
sudo echo "registerName=$registerName" | sudo tee -a $mumble_conf
|
sudo sed -i "s/*serverpassword=.*/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')
|
||||||
|
|
Loading…
Add table
Reference in a new issue