From 9a99fc0fe9fc66a7ab09d4d0ee35dced191c04dc Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 2 Mar 2021 10:28:32 +0100 Subject: [PATCH] Fix --- conf/systemd.service | 2 +- scripts/install | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index a204e02..ea506e6 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,7 +8,7 @@ Type=simple WorkingDirectory=__FINALPATH__/ User=__APP__ Group=__APP__ -ExecStart=__FINALPATH__/galene -turn __IPV4__:1194 +ExecStart=__FINALPATH__/galene -turn __PUBLIC_IPV4__:1194 LimitNOFILE=65536 [Install] diff --git a/scripts/install b/scripts/install index 399fddb..19611cb 100755 --- a/scripts/install +++ b/scripts/install @@ -125,7 +125,7 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=1 public_ip4="$(curl -s ip.yunohost.org)" || true -ynh_replace_string --match_string="__IPV4__" --replace_string="$public_ip4" --target_file="../conf/systemd.service" +ynh_replace_string --match_string="__PUBLIC_IPV4__" --replace_string="$public_ip4" --target_file="../conf/systemd.service" # Create a dedicated systemd config ynh_add_systemd_config diff --git a/scripts/upgrade b/scripts/upgrade index 4da8ca9..f456312 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -128,7 +128,7 @@ ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 public_ip4="$(curl -s ip.yunohost.org)" || true -ynh_replace_string --match_string="__IPV4__" --replace_string="$public_ip4" --target_file="../conf/systemd.service" +ynh_replace_string --match_string="__PUBLIC_IPV4__" --replace_string="$public_ip4" --target_file="../conf/systemd.service" # Create a dedicated systemd config ynh_add_systemd_config