fix all config.json paths

This commit is contained in:
2025-12-16 17:26:46 -05:00
parent a24f7fd453
commit 5a509226bc

View File

@@ -55,7 +55,7 @@ static Config LoadConfig()
Environment.Exit(1);
}
var configFile = File.ReadAllText("config.json");
var configFile = File.ReadAllText("/config.json");
return JsonSerializer.Deserialize<Config>(configFile, serializationOptions);
}
@@ -64,7 +64,7 @@ static void CreateConfig(JsonSerializerOptions options)
var dummyGrab = new GrabTarget(@"/path/to/source", @"/path/to/destination");
var dummySFtp = new SFtpTarget("ftp.domain.example", 22, "username", false, "password");
var config = new Config(dummySFtp, [dummyGrab, dummyGrab], "* * * * *");
File.WriteAllText("config.json", JsonSerializer.Serialize(config, options));
File.WriteAllText("/config.json", JsonSerializer.Serialize(config, options));
}
static async Task ScheduleJobs(Config config, CancellationToken token)