mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-09-02 11:41:44 +00:00
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>
16 lines
460 B
Bash
Executable File
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
|