From fd1abc3371ad87bd40634cb4e0f1b83197181fd7 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 19 Feb 2021 15:39:14 +0100 Subject: [PATCH] add turn --- conf/systemd.service | 2 +- scripts/install | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index cff556e..2495c42 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,7 +8,7 @@ Type=simple WorkingDirectory=__FINALPATH__/ User=__APP__ Group=__APP__ -ExecStart=__FINALPATH__/galene +ExecStart=__FINALPATH__/galene -turn __PUBLIC_IP4__.1:1194 LimitNOFILE=65536 [Install] diff --git a/scripts/install b/scripts/install index fb8dc93..ebd3bea 100755 --- a/scripts/install +++ b/scripts/install @@ -116,8 +116,10 @@ ynh_system_user_create --username=$app #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 +public_ip4="$(curl ip.yunohost.org)" || true + # Create a dedicated systemd config -ynh_add_systemd_config +ynh_add_systemd_config --others_var="public_ip4" #================================================= # MODIFY A CONFIG FILE @@ -173,7 +175,7 @@ yunohost service add $app --description="Videoconferencing server" --log="/var/l ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log" #================================================= # SETUP SSOWAT