diff --git a/scripts/install b/scripts/install index f6c1d9d..af36da6 100644 --- a/scripts/install +++ b/scripts/install @@ -115,7 +115,7 @@ ynh_print_ON coturn_config_path="/etc/turnserver.conf" -ynh_add_config --template="/etc/turnserver.conf" --destination="$coturn_config_path" +ynh_add_config --template="../conf/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/remove b/scripts/remove index b5e86a4..88dd904 100644 --- a/scripts/remove +++ b/scripts/remove @@ -55,7 +55,6 @@ ynh_remove_app_dependencies ynh_script_progression --message="Removing Coturn configuration file..." --weight=2 ynh_secure_remove --file="/etc/turnserver.conf" -mv /etc/turnserver.conf.orig /etc/turnserver.conf #================================================= # REMOVE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 9f08bc1..25fa4b7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -89,7 +89,7 @@ ynh_script_progression --message="Configuring Coturn..." --weight=2 coturn_config_path="/etc/turnserver.conf" -ynh_add_config --template="/etc/turnserver.conf" --destination="$coturn_config_path" +ynh_add_config --template="../conf/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