Sample env carries a version marker; install appends settings missing since the writing version
This commit is contained in:
@@ -191,9 +191,13 @@ writes a sample env file covering every setting — each with a comment line,
|
||||
everything commented out — except `LOG_FILE`, which is active on Windows
|
||||
(`%ProgramData%\gpu-turnstile\gpu-turnstile.log`) since a service has no
|
||||
console; on Linux it stays commented because stderr goes to the journal.
|
||||
An existing config without `LOG_FILE` gets that line appended on Windows.
|
||||
`--no-copy` registers the current executable location as-is and leaves the
|
||||
config untouched.
|
||||
The first line of an installer-written file is a version marker
|
||||
(`# gpu-turnstile version: vX.Y.Z`); when a later version's install finds
|
||||
an older marker, it appends every setting the file does not mention
|
||||
(commented or not) at the end and bumps the marker — hand-written configs
|
||||
without the marker are never touched. An existing config without `LOG_FILE`
|
||||
gets that line appended on Windows. `--no-copy` registers the current
|
||||
executable location as-is and leaves the config untouched.
|
||||
|
||||
### Windows
|
||||
|
||||
|
||||
Reference in New Issue
Block a user