mumble permissions
This commit is contained in:
parent
3990feee7d
commit
9d595c8d4e
|
@ -10204,6 +10204,12 @@ function install_voip {
|
|||
echo 'VoIP server key not created'
|
||||
exit 57893
|
||||
fi
|
||||
if [ ! -d /var/lib/mumble-server ]; then
|
||||
mkdir /var/lib/mumble-server
|
||||
fi
|
||||
cp /etc/ssl/certs/mumble.* /var/lib/mumble-server
|
||||
cp /etc/ssl/private/mumble.key /var/lib/mumble-server
|
||||
chown -R mumble-server:mumble-server /var/lib/mumble-server
|
||||
|
||||
sed -i "s|welcometext=.*|welcometext=\"<br />Welcome to $DEFAULT_DOMAIN_NAME <b>VoIP</b>.<br />Chat freely!<br />\"|g" /etc/mumble-server.ini
|
||||
|
||||
|
@ -10220,8 +10226,8 @@ function install_voip {
|
|||
echo 'allowping=False' >> /etc/mumble-server.ini
|
||||
fi
|
||||
sed -i 's|allowping=.*|allowping=False|g' /etc/mumble-server.ini
|
||||
sed -i 's|#sslCert=.*|sslCert=/etc/ssl/certs/mumble.crt|g' /etc/mumble-server.ini
|
||||
sed -i 's|#sslKey=.*|sslKey=/etc/ssl/private/mumble.key|g' /etc/mumble-server.ini
|
||||
sed -i 's|#sslCert=.*|sslCert=/var/lib/mumble-server/mumble.crt|g' /etc/mumble-server.ini
|
||||
sed -i 's|#sslKey=.*|sslKey=/var/lib/mumble-server/mumble.key|g' /etc/mumble-server.ini
|
||||
sed -i 's|#certrequired=.*|certrequired=True|g' /etc/mumble-server.ini
|
||||
sed -i 's|users=100|users=10|g' /etc/mumble-server.ini
|
||||
sed -i 's|#channelnestinglimit=10|channelnestinglimit=10|g' /etc/mumble-server.ini
|
||||
|
@ -10232,7 +10238,7 @@ function install_voip {
|
|||
sed -i 's|allowhtml=.*|allowhtml=False|g' /etc/mumble-server.ini
|
||||
sed -i "s|port=.*|port=$VOIP_PORT|g" /etc/mumble-server.ini
|
||||
|
||||
service mumble-server restart
|
||||
systemctl restart mumble-server
|
||||
|
||||
if ! grep -q "VoIP Server" /home/$MY_USERNAME/README; then
|
||||
echo '' >> /home/$MY_USERNAME/README
|
||||
|
|
Loading…
Reference in New Issue