From d4bf2b7cf678510903d947ff4fb9a0f94439c806 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 10 Oct 2019 13:22:58 +0200 Subject: [PATCH] quickfix --- Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 9f4f91e..94d39b2 100644 --- a/Program.cs +++ b/Program.cs @@ -16,12 +16,12 @@ namespace repomgr public static void Main(string[] args) { - if (File.Exists("/tmp/repomgr.lock")) + if (File.Exists("/tmp/repomgr.lock") && args[1] != "daemon") { Console.WriteLine("/tmp/repomgr.lock exists, delete if you are sure that this is the only instance"); Environment.Exit(1); } - else + else if (args[1] != "daemon") { File.Create("/tmp/repomgr.lock"); }