feat: add validate server

This commit is contained in:
Mauricio Siu
2024-12-08 19:37:11 -06:00
parent bf9abbc37c
commit 9a7ed91a55
6 changed files with 281 additions and 5 deletions

View File

@@ -132,14 +132,16 @@ const installRequirements = async (serverId: string, logPath: string) => {
echo -e "---------------------------------------------\n"
echo -e "1. Installing required packages (curl, wget, git, jq, openssl). "
command_exists() {
command -v "$@" > /dev/null 2>&1
}
${installUtilities()}
echo -e "2. Validating ports. "
${validatePorts()}
command_exists() {
command -v "$@" > /dev/null 2>&1
}
echo -e "3. Installing RClone. "
${installRClone()}