diff --git a/scripts/install b/scripts/install index 69a7435..c069d7f 100755 --- a/scripts/install +++ b/scripts/install @@ -227,7 +227,8 @@ ynh_add_config --template="../conf/ice-servers.json" --destination="$final_path/ # WARNING : theses command are used in INSTALL, UPGRADE # For any update do it in all files -ynh_add_config --template="../sources/Coturn_config_rotate.sh" --destination="$final_path/Coturn_config_rotate.sh" +cp ../sources/Coturn_config_rotate.sh $final_path/Coturn_config_rotate.sh +ynh_replace_string --match_string=__APP__ --replace_string=$app --target_file="$final_path/Coturn_config_rotate.sh" chmod +x $final_path/Coturn_config_rotate.sh #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index dd4f8e4..883c6e0 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -209,7 +209,8 @@ ynh_store_file_checksum --file="$coturn_config_path" # WARNING : theses command are used in INSTALL, UPGRADE # For any update do it in all files -ynh_add_config --template="../sources/Coturn_config_rotate.sh" --destination="$final_path/Coturn_config_rotate.sh" +cp ../sources/Coturn_config_rotate.sh $final_path/Coturn_config_rotate.sh +ynh_replace_string --match_string=__APP__ --replace_string=$app --target_file="$final_path/Coturn_config_rotate.sh" chmod +x $final_path/Coturn_config_rotate.sh #=================================================