1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/coturn_ynh.git synced 2024-09-03 18:16:32 +02:00
This commit is contained in:
ericgaspar 2021-01-17 13:59:49 +01:00
parent f65860e5e6
commit b5ebb58ba1
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
# Check if the IP as not changed at every 15th minute # Check if the IP as not changed at every 15th minute
# */15 * * * * root bash /__SCRIPT_PATH__/Coturn_config_rotate.sh; # */15 * * * * root bash /__SCRIPT_PATH__/Coturn_config_rotate.sh;
*/15 * * * * __USER__ bash /__SCRIPT_PATH__/Coturn_config_rotate.sh; */15 * * * * __USER__ bash /__DATA_PATH__/Coturn_config_rotate.sh;

View file

@ -176,7 +176,7 @@ chmod +x $data_path/Coturn_config_rotate.sh
cp -f ../conf/cron_coturn /etc/cron.d/$app 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="__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 # SETUP LOGROTATE