From b5ebb58ba1fd9b307073dd07fa44ff8da737345e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 17 Jan 2021 13:59:49 +0100 Subject: [PATCH] fix --- conf/cron_coturn | 2 +- scripts/install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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