Skip to content

Commit

Permalink
same change for linux script
Browse files Browse the repository at this point in the history
  • Loading branch information
obs-gh-mattcotter committed Dec 19, 2024
1 parent 376881b commit 8e3fc7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ else
echo "Initializing observe-agent.yaml"
INIT_FLAGS="--config_path $observeagent_config_dir/observe-agent.yaml --token $TOKEN --observe_url $OBSERVE_URL --host_monitoring::enabled=true"
if [ -n "$LOGS_ENABLED" ]; then
if [[ "${LOGS_ENABLED,,}" == "true" ]]; then
if [[ "$(echo "$LOGS_ENABLED" | tr '[:upper:]' '[:lower:]')" == "true" ]]; then
INIT_FLAGS="$INIT_FLAGS --host_monitoring::logs::enabled=true"
else
INIT_FLAGS="$INIT_FLAGS --host_monitoring::logs::enabled=false"
fi
fi
if [ -n "$METRICS_ENABLED" ]; then
if [[ "${METRICS_ENABLED,,}" == "true" ]]; then
if [[ "$(echo "$METRICS_ENABLED" | tr '[:upper:]' '[:lower:]')" == "true" ]]; then
INIT_FLAGS="$INIT_FLAGS --host_monitoring::metrics::host::enabled=true"
else
INIT_FLAGS="$INIT_FLAGS --host_monitoring::metrics::host::enabled=false"
Expand Down

0 comments on commit 8e3fc7b

Please sign in to comment.