From 5dff9b52b5c79f87097ca87576cb519203b746a8 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Mon, 4 Jul 2022 09:09:32 +0200 Subject: [PATCH] Migrate to Go web server logs collector --- scripts/_common.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index e961dc2..d192f7c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -57,23 +57,27 @@ configure_netdata() { # Add a web_log entry for every YunoHost domain netdata_add_yunohost_web_logs () { - local web_log_file="$final_path/etc/netdata/python.d/web_log.conf" + local web_log_file="$final_path/etc/netdata/go.d/web_log.conf" if [ ! -f $web_log_file ] ; then - cp $final_path/etc/netdata/orig/python.d/web_log.conf $web_log_file + cp $final_path/etc/netdata/orig/go.d/web_log.conf $web_log_file fi if [ -z "$(grep "YUNOHOST" $web_log_file)" ] ; then echo "# ------------YUNOHOST DOMAINS---------------" >> $web_log_file for domain in $(yunohost domain list --output-as plain); do domain_label=${domain//\./_} # Replace "." by "_" for the domain label cat >> $web_log_file <