Sync the env file at startup, not just at install: updates append new settings

This commit is contained in:
mram
2026-09-21 20:56:32 +02:00
parent 482731ed9e
commit 9997913929
3 changed files with 25 additions and 2 deletions
+2 -1
View File
@@ -66,7 +66,8 @@ func sampleEntries(logFile string) []sampleEntry {
// comment line. Everything is commented out — so all defaults apply —
// except the CFG_VER/APP_VER header and LOG_FILE when logFile is non-empty
// (a Windows service has no console). CFG_VER records the version that
// wrote the file so later installs can upgrade it.
// wrote the file so installs — and startups after an update — can upgrade
// it.
func SampleEnv(version, logFile string) string {
// CFG_VER is always a concrete vX.Y.Z — never "dev". A dev build
// stamps v0.0.0, which sorts older than any release, so the next