mirror of
https://github.com/YunoHost-Apps/mumbleserver_ynh.git
synced 2024-09-03 19:46:03 +02:00
Fix
This commit is contained in:
parent
ad9982d644
commit
89f5f83b70
4 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Mumble Server",
|
||||
"id": "mumbleserver",
|
||||
"id": "mumble-server",
|
||||
"packaging_format": 1,
|
||||
"description": {
|
||||
"en": "Low-latency, high quality voice chat software (VoIP).",
|
||||
|
|
|
@ -48,7 +48,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
|||
# 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"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -143,11 +143,11 @@ fi
|
|||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config --service=mumble-server --template=systemd.service
|
||||
ynh_add_systemd_config
|
||||
|
||||
if [ "$mumbleweb" -eq 1 ] ; then
|
||||
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
|
||||
|
||||
#=================================================
|
||||
|
@ -171,7 +171,7 @@ usermod --append --groups ssl-cert mumble-server
|
|||
|
||||
# || true temporarily to ignore a bug in murmurd 1.3.0
|
||||
# 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
|
||||
|
|
|
@ -178,11 +178,11 @@ ynh_add_config --template="../conf/mumble-server.ini" --destination="$final_path
|
|||
ynh_script_progression --message="Upgrading systemd configuration..." --weight=2
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config --service=mumble-server --template=systemd.service
|
||||
ynh_add_systemd_config
|
||||
|
||||
if [ "$mumbleweb" -eq 1 ] ; then
|
||||
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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue