diff --git a/Program.cs b/Program.cs index 8d9b299..7b0ef06 100644 --- a/Program.cs +++ b/Program.cs @@ -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(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)