mirror of
https://github.com/Jackett/Jackett
synced 2025-01-19 14:10:07 +00:00
Added change port argument to console app
This commit is contained in:
parent
91f80e054c
commit
705890d5ec
1 changed files with 10 additions and 7 deletions
|
@ -22,14 +22,17 @@ namespace JackettConsole
|
||||||
{
|
{
|
||||||
switch (args[0].ToLowerInvariant())
|
switch (args[0].ToLowerInvariant())
|
||||||
{
|
{
|
||||||
case "/i":
|
case "/i": // install
|
||||||
Engine.ServiceConfig.Install();
|
Engine.ServiceConfig.Install();
|
||||||
return;
|
return;
|
||||||
case "/r":
|
case "/r": // reserve port/url & install
|
||||||
Engine.Server.ReserveUrls();
|
Engine.Server.ReserveUrls(doInstall: true);
|
||||||
return;
|
return;
|
||||||
case "/u":
|
case "/c": // change port
|
||||||
Engine.Server.ReserveUrls(false);
|
Engine.Server.ReserveUrls(doInstall: false);
|
||||||
|
return;
|
||||||
|
case "/u": // uninstall
|
||||||
|
Engine.Server.ReserveUrls(doInstall: false);
|
||||||
Engine.ServiceConfig.Uninstall();
|
Engine.ServiceConfig.Uninstall();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue