Files
clr-installer/scripts/local-telemetry-post.sh
Alex Jaramillo 201767721b telemetry: rework record generation
Use a new feature from telem-record-gen where the telemetry record is
generated independently of telempost daemon. This change allows to
simplify the code to interact with telemetry.

Signed-off-by: Alex Jaramillo <alex.v.jaramillo@intel.com>
2019-08-19 16:14:42 -07:00

17 lines
435 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/
# Create configuration to keep data private
if [[ ! -f "$1/etc/telemetrics/telemetrics.conf" ]];then
cat <<EOF > $1/etc/telemetrics/telemetrics.conf
server=http://localhost/v2/collector
record_server_delivery_enabled=false
record_retention_enabled=true
EOF
fi
exit 0