1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mumbleserver_ynh.git synced 2024-09-03 19:46:03 +02:00
This commit is contained in:
ericgaspar 2021-06-04 23:57:04 +02:00
parent ad9982d644
commit 89f5f83b70
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "Mumble Server", "name": "Mumble Server",
"id": "mumbleserver", "id": "mumble-server",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "Low-latency, high quality voice chat software (VoIP).", "en": "Low-latency, high quality voice chat software (VoIP).",

View file

@ -48,7 +48,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
# BACKUP SYSTEMD # BACKUP SYSTEMD
#================================================= #=================================================
ynh_backup "/etc/systemd/system/$app.service" ynh_backup "/etc/systemd/system/$app-server.service"
ynh_backup "/etc/systemd/system/$app-web.service" ynh_backup "/etc/systemd/system/$app-web.service"
#================================================= #=================================================

View file

@ -143,11 +143,11 @@ fi
ynh_script_progression --message="Configuring a systemd service..." --weight=1 ynh_script_progression --message="Configuring a systemd service..." --weight=1
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_add_systemd_config --service=mumble-server --template=systemd.service ynh_add_systemd_config
if [ "$mumbleweb" -eq 1 ] ; then if [ "$mumbleweb" -eq 1 ] ; then
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/mumble-web.service" ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/mumble-web.service"
ynh_add_systemd_config --service=mumble-web --template=mumble-web.service ynh_add_systemd_config --service=$app-web --template=mumble-web.service
fi fi
#================================================= #=================================================
@ -171,7 +171,7 @@ usermod --append --groups ssl-cert mumble-server
# || true temporarily to ignore a bug in murmurd 1.3.0 # || true temporarily to ignore a bug in murmurd 1.3.0
# https://github.com/mumble-voip/mumble/issues/3911 # https://github.com/mumble-voip/mumble/issues/3911
murmurd -ini "$mumble_conf" -supw "$su_passwd" "$instance_id" || true murmurd -ini "$final_path/mumble-server.ini" -supw "$su_passwd" "$instance_id" || true
#================================================= #=================================================
# Disable default server installed by Debian's package # Disable default server installed by Debian's package

View file

@ -178,11 +178,11 @@ ynh_add_config --template="../conf/mumble-server.ini" --destination="$final_path
ynh_script_progression --message="Upgrading systemd configuration..." --weight=2 ynh_script_progression --message="Upgrading systemd configuration..." --weight=2
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_add_systemd_config --service=mumble-server --template=systemd.service ynh_add_systemd_config
if [ "$mumbleweb" -eq 1 ] ; then if [ "$mumbleweb" -eq 1 ] ; then
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/mumble-web.service" ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/mumble-web.service"
ynh_add_systemd_config --service=mumble-web --template=mumble-web.service ynh_add_systemd_config --service=$app-web --template=mumble-web.service
fi fi
#================================================= #=================================================