Atualizar install.sh
This commit is contained in:
parent
5224c00c4b
commit
677093396f
11
install.sh
11
install.sh
@ -1,14 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# URLs for configuration files
|
||||
DOCKER_COMPOSE_URL="https://git.masscivicdynamic.com/wallaceosmar/nexo-cloud-scripts/raw/branch/main/docker-compose.yml"
|
||||
KUBERNETES_DEPLOY_URL="https://git.masscivicdynamic.com/wallaceosmar/nexo-cloud-scripts/raw/branch/main/kubernets-deploy.yaml"
|
||||
DOCKER_COMPOSE_URL="https://git.masscivicdynamic.com/masscivicdynamic/nexo-cloud/raw/branch/main/script/docker-compose.yml"
|
||||
KUBERNETES_DEPLOY_URL="https://git.masscivicdynamic.com/masscivicdynamic/nexo-cloud/raw/branch/main/script/kubernets-deploy.yaml"
|
||||
ENV_FILE="/data/nexo-cloud/.env"
|
||||
DATA_DIR="/data/nexo-cloud"
|
||||
|
||||
# Minimum disk space requirements (in GB)
|
||||
MIN_TOTAL_DISK_SPACE=20
|
||||
MIN_AVAILABLE_DISK_SPACE=10
|
||||
MIN_TOTAL_DISK_SPACE=30
|
||||
MIN_AVAILABLE_DISK_SPACE=20
|
||||
|
||||
# Function to check if a command exists
|
||||
command_exists() {
|
||||
@ -137,8 +137,7 @@ install_application() {
|
||||
kubectl apply -f kubernetes-deploy.yaml
|
||||
else
|
||||
echo "Neither Docker nor Kubernetes is installed."
|
||||
echo "Would you like to install Docker or K3s? (docker/k3s): "
|
||||
read -p choice
|
||||
read -p "Would you like to install Docker or K3s? (docker/k3s): " choice
|
||||
case "$choice" in
|
||||
docker )
|
||||
install_docker
|
||||
|
Loading…
x
Reference in New Issue
Block a user