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).",
|
||||
"fr": "Logiciel libre de voix sur IP (VoIP)."
|
||||
},
|
||||
"version": "1.2.8~ynh7",
|
||||
"url": "https://mumble.info",
|
||||
"license": "BSD-3-Clause",
|
||||
"maintainer": {
|
||||
|
@ -13,39 +14,41 @@
|
|||
"email": "jean-baptiste@holcroft.fr"
|
||||
},
|
||||
"requirements": {
|
||||
"yunohost": ">= 3.4.0"
|
||||
"yunohost": ">= 3.8.1"
|
||||
},
|
||||
"version": "1.2.8~ynh7",
|
||||
"multi_instance": true,
|
||||
"services": [
|
||||
],
|
||||
"arguments": {
|
||||
"install" : [
|
||||
{
|
||||
"name": "domain",
|
||||
"type": "domain",
|
||||
"ask": {
|
||||
"en": "Choose a domain (used to select the correct certificate)"
|
||||
"name": "domain",
|
||||
"type": "domain",
|
||||
"ask": {
|
||||
"en": "Choose a domain (used to select the correct certificate)",
|
||||
"fr": "Choisissez un domaine (utilisé pour sélectionner le bon certificat)"
|
||||
},
|
||||
"example": "domain.org"
|
||||
},
|
||||
{
|
||||
"name": "welcometext",
|
||||
"ask": {
|
||||
"en": "Choose a welcome text for your server",
|
||||
"fr": "Choisissez un message de bienvenue pour le serveur"
|
||||
},
|
||||
"example": "Welcome to my mumble server",
|
||||
"default": "Welcome"
|
||||
"name": "welcometext",
|
||||
"type": "string",
|
||||
"ask": {
|
||||
"en": "Choose a welcome text for your server",
|
||||
"fr": "Choisissez un message de bienvenue pour le serveur"
|
||||
},
|
||||
"example": "Welcome to my Mumble server",
|
||||
"default": "Welcome"
|
||||
},
|
||||
{
|
||||
"name": "registername",
|
||||
"ask": {
|
||||
"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)"
|
||||
},
|
||||
"example": "Root",
|
||||
"default": "Root"
|
||||
"name": "registername",
|
||||
"type": "string",
|
||||
"ask": {
|
||||
"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)"
|
||||
},
|
||||
"example": "Root",
|
||||
"default": "Root"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -66,14 +66,14 @@ usermod --append --groups ssl-cert mumble-server
|
|||
#=================================================
|
||||
|
||||
systemctl stop mumble-server
|
||||
systemctl disable mumble-server
|
||||
systemctl disable mumble-server --quiet
|
||||
|
||||
#=================================================
|
||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
#=================================================
|
||||
|
||||
# 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
|
||||
|
|
|
@ -74,7 +74,7 @@ if [ -z "$server_password" ]; then
|
|||
systemctl stop mumble-server
|
||||
dpkg-reconfigure mumble-server --frontend=Noninteractive
|
||||
systemctl stop mumble-server
|
||||
systemctl disable mumble-server
|
||||
systemctl disable mumble-server --quiet
|
||||
fi
|
||||
|
||||
# Fix SSO issue
|
||||
|
@ -193,7 +193,7 @@ systemctl disable mumble-server --quiet
|
|||
#=================================================
|
||||
|
||||
# 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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue