diff --git a/Server.Installer/Program.cs b/Server.Installer/Program.cs index c8a95687..89e3c362 100644 --- a/Server.Installer/Program.cs +++ b/Server.Installer/Program.cs @@ -47,7 +47,6 @@ namespace Server.Installer { ConsoleHelper.WriteError("The installer process must be elevated. On Linux, run with sudo. " + "On Windows, run from a command line that was opened with \"Run as admin\"."); - ConsoleHelper.ReadLine("Press any key to exit."); return; } @@ -201,6 +200,7 @@ namespace Server.Installer if (bool.TryParse(value, out var result)) { cliParams.CreateNew = result; + continue; } return false; } @@ -210,6 +210,7 @@ namespace Server.Installer if (int.TryParse(value, out var webServerResult)) { cliParams.WebServer = (WebServerType)webServerResult; + continue; } return false; } @@ -258,9 +259,7 @@ namespace Server.Installer "requests to the Remotely server. Select the appropriate option for your operating system and web server. " + "0 = Caddy on Ubuntu. 1 = Nginx on Ubuntu. 2 = Caddy on CentOS. 3 = Nginx on CentOS. 4 = IIS on Windows Server 2016+.", 1); - ConsoleHelper.WriteLine("Example: sudo ./Remotely_Server_Installer -u lucent-sea -p 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 -s https://app.remotely.one -i /var/www/remotely/ -r master -c true -r 0"); - - ConsoleHelper.ReadLine("Press any key to exit"); + ConsoleHelper.WriteLine("Example: sudo ./Remotely_Server_Installer -u lucent-sea -p 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 -s https://app.remotely.one -i /var/www/remotely/ -r master -c true -w 0"); } } }