diff --git a/conf/cron_coturn b/conf/cron_coturn index 648c18c..89b54ba 100644 --- a/conf/cron_coturn +++ b/conf/cron_coturn @@ -1,3 +1,2 @@ # Check if the IP as not changed at every 15th minute -# */15 * * * * root bash /__SCRIPT_PATH__/Coturn_config_rotate.sh; -*/15 * * * * __USER__ bash /__DATA_PATH__/Coturn_config_rotate.sh; \ No newline at end of file +*/15 * * * * root bash /__DATA_PATH__/Coturn_config_rotate.sh; \ No newline at end of file diff --git a/scripts/install b/scripts/install index 4ab0c46..5ff9d20 100644 --- a/scripts/install +++ b/scripts/install @@ -145,7 +145,6 @@ fi ynh_store_file_checksum --file="$coturn_config_path" - #================================================= # ADD SCRIPT FOR COTURN CRON #================================================= @@ -162,7 +161,6 @@ 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="__DATA_PATH__" --replace_string=$data_path --target_file=/etc/cron.d/$app #================================================= @@ -179,7 +177,7 @@ ynh_use_logrotate #================================================= # Set permissions to app files -chown turnserver: -R $data_path +chown root: -R $data_path chown -R root /var/log/$app setfacl -R -m user:turnserver:rwX /var/log/$app diff --git a/scripts/remove b/scripts/remove index d0430a8..1e2cf71 100644 --- a/scripts/remove +++ b/scripts/remove @@ -52,7 +52,7 @@ ynh_remove_app_dependencies #================================================= # REMOVE APP MAIN DIR #================================================= -ynh_script_progression --message="Removing Coturn main directory..." --weight=2 +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