diff --git a/manifest.json b/manifest.json index 5a1fed2..67684e9 100644 --- a/manifest.json +++ b/manifest.json @@ -6,11 +6,11 @@ "en": "VoIP media traffic NAT traversal server and gateway", "fr": "Serveur et passerelle NAT du trafic média VoIP" }, - "version": "4.5.1.1~ynh1", + "version": "4.5.1.1~ynh2", "url": "https://github.com/coturn/coturn", "license": "BSD-3-Clause", "maintainer": { - "name": "", + "name": "eric_G", "email": "" }, "requirements": { diff --git a/scripts/install b/scripts/install index 71d3712..428ef4e 100644 --- a/scripts/install +++ b/scripts/install @@ -148,6 +148,8 @@ data_path="/home/yunohost.app/$app" mkdir -p $data_path cp -f ../sources/Coturn_config_rotate.sh $data_path/ ynh_replace_string --match_string="__APP__" --replace_string=$app --target_file=$data_path/Coturn_config_rotate.sh +ynh_replace_string --match_string="__IPV4__" --replace_string=$public_ip4 --target_file=$data_path/Coturn_config_rotate.sh +ynh_replace_string --match_string="__IPV6__" --replace_string=$public_ip6 --target_file=$data_path/Coturn_config_rotate.sh chmod +x $data_path/Coturn_config_rotate.sh #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 5cf0cd7..2cb03f4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -124,6 +124,8 @@ data_path="/home/yunohost.app/$app" mkdir -p $data_path cp -f ../sources/Coturn_config_rotate.sh $data_path/ ynh_replace_string --match_string="__APP__" --replace_string=$app --target_file=$data_path/Coturn_config_rotate.sh +ynh_replace_string --match_string="__IPV4__" --replace_string=$public_ip4 --target_file=$data_path/Coturn_config_rotate.sh +ynh_replace_string --match_string="__IPV6__" --replace_string=$public_ip6 --target_file=$data_path/Coturn_config_rotate.sh chmod +x $data_path/Coturn_config_rotate.sh #=================================================