Skip to content

Conversation

@haoruizhou
Copy link
Collaborator

right now the env get erased so default passwords defined in docker-compose are being used
there might need to be an intermediate .env file that's being used by the start up script to avoid erasing the original .env

@haoruizhou haoruizhou requested a review from Copilot September 23, 2025 14:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses issues with environment variable handling in the DAQ system startup process. The main problem was that the original .env file was being erased, causing the system to fall back to default passwords defined in docker-compose.

Key changes:

  • Adds environment variable export at the start of the startup script to preserve existing .env values
  • Simplifies the token extraction process to use a single, more reliable Docker-based method
  • Updates the .env.example file with specific default passwords for the DAQ system

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
installer/scripts/start-daq-system.sh Adds env export and simplifies token extraction to prevent .env erasure
installer/scripts/extract-influx-token.sh Streamlines to use Docker-based token extraction only, removing complex fallback methods
installer/.env.example Updates with specific default passwords for InfluxDB and Grafana

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

haoruizhou and others added 2 commits September 23, 2025 10:41
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
resolved token saving (now appends instead of replace whole .env)
@haoruizhou haoruizhou merged commit ae60ef6 into main Sep 23, 2025
6 of 11 checks passed
@haoruizhou haoruizhou deleted the linux branch September 28, 2025 23:31
haoruizhou added a commit that referenced this pull request Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants