Remove interactive prompts from possibly-non-interactive sections. Continue when successfully parsing -c and -w.

This commit is contained in:
Jared 2021-04-14 12:52:00 -07:00 committed by Jared Goodwin
parent b5c5380cf5
commit 4d606d577f

View File

@ -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");
}
}
}