mirror of
https://github.com/YunoHost-Apps/mumble-web_ynh.git
synced 2024-09-03 19:46:16 +02:00
Fix
This commit is contained in:
parent
b3772fbcc1
commit
09194cb29e
3 changed files with 4 additions and 18 deletions
|
@ -1,5 +1 @@
|
||||||
#### Setup
|
#### Setup
|
||||||
|
|
||||||
This package installs the Debian package and configures it with given settings. Password and other usefull information will be sent to you after installation.
|
|
||||||
|
|
||||||
- [Add the admin](http://wiki.mumble.info/wiki/Murmurguide#Connecting_to_Murmur_Server)
|
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
mumbleserver_ynh installe le paquet Debian et le configure avec les paramètres donnés. Le mot de passe et d'autres informations utiles sont envoyés après l'installation.
|
|
||||||
|
|
||||||
- [Ajouter l'administrateur](http://wiki.mumble.info/wiki/Murmurguide#Connecting_to_Murmur_Server)
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# doc: https://wiki.mumble.info/wiki/Running_Murmur
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC START
|
# GENERIC START
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -29,9 +27,6 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
server_password=$(ynh_string_random)
|
|
||||||
su_passwd=$(ynh_string_random)
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -68,7 +63,7 @@ ynh_app_setting_set --app=$app --key=port_web --value=$port
|
||||||
ynh_script_progression --message="Installing dependencies..." --weight=4
|
ynh_script_progression --message="Installing dependencies..." --weight=4
|
||||||
|
|
||||||
# Install Mumble Debian package via apt
|
# Install Mumble Debian package via apt
|
||||||
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
ynh_install_nodejs --nodejs_version=$nodejs_version
|
ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
|
|
||||||
|
@ -85,7 +80,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Mumble Web..." --weight=4
|
ynh_script_progression --message="Installing Mumble Web..." --weight=4
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path"
|
ynh_setup_source --dest_dir="$final_path"
|
||||||
|
|
||||||
|
@ -106,8 +101,7 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# mumble server conf.ini
|
# mumble server conf.ini
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring Mumble server..." --weight=1
|
ynh_script_progression --message="Configuring Mumble Web..." --weight=1
|
||||||
|
|
||||||
|
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
(
|
(
|
||||||
|
@ -130,7 +124,7 @@ ynh_add_systemd_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
# Add Mumble as a YunoHost service
|
# Add Mumble as a YunoHost service
|
||||||
yunohost service add $app --description="Mumble web interface" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Mumble web interface" --log="/var/log/$app/$app.log"
|
||||||
|
|
Loading…
Add table
Reference in a new issue