mirror of
https://github.com/YunoHost-Apps/mumbleserver_ynh.git
synced 2024-09-03 19:46:03 +02:00
writing password into settings.yml and update readme
This commit is contained in:
parent
a69100a408
commit
41633becc5
3 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,10 @@
|
||||||
mumble_yunohost
|
mumble_yunohost
|
||||||
===============
|
===============
|
||||||
A yunohost compatible version of Mumble.
|
A yunohost compatible version of Mumble server (Murmur).
|
||||||
This download it via the repository of debian and configures it with given settings.
|
This download it via the repository of debian and configures it with given settings.
|
||||||
|
|
||||||
|
SETUP
|
||||||
|
======
|
||||||
|
-install it via github
|
||||||
|
-get the SuperUser password in this file : /etc/yunohost/apps/mumbleserver/settings.yml
|
||||||
|
-do like said here : http://wiki.mumble.info/wiki/Murmurguide#Connecting_to_Murmur_Server
|
|
@ -54,7 +54,7 @@
|
||||||
"fr": "Entrez un nom pour le channel racine"
|
"fr": "Entrez un nom pour le channel racine"
|
||||||
},
|
},
|
||||||
"example": "Root",
|
"example": "Root",
|
||||||
"default": "Root'"
|
"default": "Root"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,8 @@ 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')
|
||||||
|
|
||||||
|
#save superuser password
|
||||||
|
sudo yunohost app setting $app superuser_password -v "$su_passwd"
|
||||||
#open port in firewall
|
#open port in firewall
|
||||||
sudo yunohost firewall allow Both $port > /dev/null 2>&1
|
sudo yunohost firewall allow Both $port > /dev/null 2>&1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue