diff --git a/conf/cron_coturn b/conf/cron_coturn index 4fe0cc3..648c18c 100644 --- a/conf/cron_coturn +++ b/conf/cron_coturn @@ -1,3 +1,3 @@ # Check if the IP as not changed at every 15th minute # */15 * * * * root bash /__SCRIPT_PATH__/Coturn_config_rotate.sh; -*/15 * * * * __USER__ bash /__SCRIPT_PATH__/Coturn_config_rotate.sh; \ No newline at end of file +*/15 * * * * __USER__ bash /__DATA_PATH__/Coturn_config_rotate.sh; \ No newline at end of file diff --git a/scripts/install b/scripts/install index b2b2bf1..6b30016 100644 --- a/scripts/install +++ b/scripts/install @@ -176,7 +176,7 @@ chmod +x $data_path/Coturn_config_rotate.sh cp -f ../conf/cron_coturn /etc/cron.d/$app ynh_replace_string --match_string="__USER__" --replace_string=turnserver --target_file=/etc/cron.d/$app -ynh_replace_string --match_string="__SCRIPT_PATH__" --replace_string=$script_path --target_file=/etc/cron.d/$app +ynh_replace_string --match_string="__DATA_PATH__" --replace_string=$data_path --target_file=/etc/cron.d/$app #================================================= # SETUP LOGROTATE