This commit is contained in:
Laura Hausmann 2019-10-10 14:19:05 +02:00
parent d4bf2b7cf6
commit 1ae55c9a16
1 changed files with 3 additions and 4 deletions

View File

@ -18,7 +18,7 @@ namespace repomgr
{
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");
Console.WriteLine("/tmp/repomgr.lock exists, delete it if you are sure no other process is running");
Environment.Exit(1);
}
else if (args[1] != "daemon")
@ -129,8 +129,8 @@ namespace repomgr
PrintHelp();
break;
}
File.Delete("/tmp/repomgr.lock");
if (File.Exists("/tmp/repomgr.lock"))
File.Delete("/tmp/repomgr.lock");
}
private static void PrintHelp()
@ -144,7 +144,6 @@ namespace repomgr
Console.WriteLine("repomgr <data-path> update <package> [-f]");
Console.WriteLine("repomgr <data-path> update-all");
Console.WriteLine("repomgr <data-path> daemon");
Environment.Exit(0);
}
private static IWebHostBuilder CreateWebHostBuilder(string[] args) =>