diff --git a/scripts/install b/scripts/install index a8da11a..f7bee71 100755 --- a/scripts/install +++ b/scripts/install @@ -171,7 +171,7 @@ turnserver_pwd=$(ynh_string_random --length=30) ynh_app_setting_set --app=$app --key=turnserver_pwd --value=$turnserver_pwd ynh_print_ON -# coturn_config_path="/etc/$app/coturn.conf" +coturn_config_path="/etc/$app/coturn.conf" # cp ../conf/coturn/turnserver.conf "$coturn_config_path" # ynh_replace_string --match_string=__APP__ --replace_string=$app --target_file="$coturn_config_path" @@ -183,7 +183,7 @@ ynh_print_ON # ynh_replace_string --match_string=__TURNSERVER_PWD__ --replace_string=$turnserver_pwd --target_file="$coturn_config_path" # ynh_print_ON -ynh_add_config --template="../conf/coturn/turnserver.conf" --destination="/etc/$app/coturn.conf" +ynh_add_config --template="../conf/coturn/turnserver.conf" --destination="$coturn_config_path" # Get public IP and set as external IP for coturn # note: '|| true' is used to ignore the errors if we can't get the public ipv4 or ipv6 diff --git a/scripts/restore b/scripts/restore index c101d41..18eb029 100755 --- a/scripts/restore +++ b/scripts/restore @@ -140,7 +140,7 @@ ynh_print_ON # WARNING : these commands are used in INSTALL, UPGRADE # For any update do it in all files -# coturn_config_path="/etc/$app/coturn.conf" +coturn_config_path="/etc/$app/coturn.conf" # cp ../settings/conf/coturn/turnserver.conf "$coturn_config_path" @@ -153,7 +153,7 @@ ynh_print_ON # ynh_replace_string --match_string=__TURNPWD__ --replace_string=$turnserver_pwd --target_file="$coturn_config_path" # ynh_print_ON -ynh_add_config --template="../settings/conf/coturn/turnserver.conf" --destination="/etc/$app/coturn.conf" +ynh_add_config --template="../settings/conf/coturn/turnserver.conf" --destination="$coturn_config_path" # Get public IP and set as external IP for coturn # note : '|| true' is used to ignore the errors if we can't get the public ipv4 or ipv6 diff --git a/scripts/upgrade b/scripts/upgrade index 209f5c5..a5c005f 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -164,7 +164,7 @@ ynh_script_progression --message="Updating Coturn config..." --weight=1 # WARNING : theses command are used in INSTALL, UPGRADE # For any update do it in all files -# coturn_config_path="/etc/$app/coturn.conf" +coturn_config_path="/etc/$app/coturn.conf" # cp ../conf/coturn/turnserver.conf $coturn_config_path # ynh_replace_string --match_string=__APP__ --replace_string=$app --target_file="$coturn_config_path" @@ -176,7 +176,7 @@ ynh_script_progression --message="Updating Coturn config..." --weight=1 # ynh_replace_string --match_string=__TURNSERVER_PWD__ --replace_string=$turnserver_pwd --target_file="$coturn_config_path" # ynh_print_ON -ynh_add_config --template="../conf/coturn/turnserver.conf" --destination="/etc/$app/coturn.conf" +ynh_add_config --template="../conf/coturn/turnserver.conf" --destination="$coturn_config_path" # Get public IP and set as external IP for coturn # note : '|| true' is used to ignore the errors if we can't get the public ipv4 or ipv6