Sample env carries a version marker; install appends settings missing since the writing version

This commit is contained in:
mram
2026-09-21 08:54:47 +02:00
parent cf48796183
commit e46e92bee8
7 changed files with 239 additions and 46 deletions
+7 -3
View File
@@ -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