mirror of
https://github.com/YunoHost-Apps/mumbleserver_ynh.git
synced 2024-09-03 19:46:03 +02:00
Fix linter warning
This commit is contained in:
parent
a1ae3118fc
commit
a5ea0ad428
3 changed files with 27 additions and 24 deletions
|
@ -6,6 +6,7 @@
|
||||||
"en": "Low-latency, high quality voice chat software (VoIP).",
|
"en": "Low-latency, high quality voice chat software (VoIP).",
|
||||||
"fr": "Logiciel libre de voix sur IP (VoIP)."
|
"fr": "Logiciel libre de voix sur IP (VoIP)."
|
||||||
},
|
},
|
||||||
|
"version": "1.2.8~ynh7",
|
||||||
"url": "https://mumble.info",
|
"url": "https://mumble.info",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
@ -13,9 +14,8 @@
|
||||||
"email": "jean-baptiste@holcroft.fr"
|
"email": "jean-baptiste@holcroft.fr"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 3.4.0"
|
"yunohost": ">= 3.8.1"
|
||||||
},
|
},
|
||||||
"version": "1.2.8~ynh7",
|
|
||||||
"multi_instance": true,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
],
|
],
|
||||||
|
@ -25,24 +25,27 @@
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"type": "domain",
|
"type": "domain",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose a domain (used to select the correct certificate)"
|
"en": "Choose a domain (used to select the correct certificate)",
|
||||||
|
"fr": "Choisissez un domaine (utilisé pour sélectionner le bon certificat)"
|
||||||
},
|
},
|
||||||
"example": "domain.org"
|
"example": "domain.org"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "welcometext",
|
"name": "welcometext",
|
||||||
|
"type": "string",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose a welcome text for your server",
|
"en": "Choose a welcome text for your server",
|
||||||
"fr": "Choisissez un message de bienvenue pour le serveur"
|
"fr": "Choisissez un message de bienvenue pour le serveur"
|
||||||
},
|
},
|
||||||
"example": "Welcome to my mumble server",
|
"example": "Welcome to my Mumble server",
|
||||||
"default": "Welcome"
|
"default": "Welcome"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "registername",
|
"name": "registername",
|
||||||
|
"type": "string",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose a name for the root channel (your mumble server name)",
|
"en": "Choose a name for the root channel (your Mumble server name)",
|
||||||
"fr": "Entrez un nom pour le channel racine (le nom de votre serveur mumble)"
|
"fr": "Entrez un nom pour le channel racine (le nom de votre serveur Mumble)"
|
||||||
},
|
},
|
||||||
"example": "Root",
|
"example": "Root",
|
||||||
"default": "Root"
|
"default": "Root"
|
||||||
|
|
|
@ -66,14 +66,14 @@ usermod --append --groups ssl-cert mumble-server
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
systemctl stop mumble-server
|
systemctl stop mumble-server
|
||||||
systemctl disable mumble-server
|
systemctl disable mumble-server --quiet
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Add Mumble as a YunoHost service
|
# Add Mumble as a YunoHost service
|
||||||
yunohost service add "$app" -l "/var/log/mumble-server/$app.log"
|
yunohost service add $app --description="Mumble server" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE SYSTEMD
|
# RESTORE SYSTEMD
|
||||||
|
|
|
@ -74,7 +74,7 @@ if [ -z "$server_password" ]; then
|
||||||
systemctl stop mumble-server
|
systemctl stop mumble-server
|
||||||
dpkg-reconfigure mumble-server --frontend=Noninteractive
|
dpkg-reconfigure mumble-server --frontend=Noninteractive
|
||||||
systemctl stop mumble-server
|
systemctl stop mumble-server
|
||||||
systemctl disable mumble-server
|
systemctl disable mumble-server --quiet
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fix SSO issue
|
# Fix SSO issue
|
||||||
|
@ -193,7 +193,7 @@ systemctl disable mumble-server --quiet
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Add Mumble as a YunoHost service
|
# Add Mumble as a YunoHost service
|
||||||
yunohost service add "$app" -l "/var/log/mumble-server/$app.log"
|
yunohost service add $app --description="Mumble server" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
systemctl restart "$app"
|
systemctl restart "$app"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue