mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-08-19 13:57:09 +00:00
201767721b
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>
17 lines
435 B
Bash
Executable File
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
|