Files
clr-installer/scripts/local-telemetry-post.sh
T
Mark D Horn 6a27623a82 New telemetry defaults
Update the latest release telemetry configuration file
and update the post install hook with the new default
and new maximum.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-04 14:28:41 -08:00

16 lines
460 B
Bash
Executable File

#!/bin/bash
# Create a custom telemetry configuration to only log locally
echo "Creating custom telemetry configuration for $1"
mkdir -p $1/etc/telemetrics/
cp $1/usr/share/defaults/telemetrics/telemetrics.conf \
$1/etc/telemetrics/telemetrics.conf
sed -i -e '/server=/s/clr.telemetry.intel.com/localhost/' \
-e '/spool_process_time/s/=120/=300/' \
-e '/record_retention_enabled/s/=false/=true/' \
$1/etc/telemetrics/telemetrics.conf
exit 0