diff --git a/install.sh b/install.sh index cc6da8f..8362e34 100644 --- a/install.sh +++ b/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,24 +137,23 @@ 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) + docker ) install_docker curl -o docker-compose.yml $DOCKER_COMPOSE_URL echo "docker-compose.yml downloaded successfully." echo "Running Docker Compose with the environment variables..." docker-compose --env-file "$ENV_FILE" up -d ;; - k3s) + k3s ) install_k3s curl -o kubernetes-deploy.yaml $KUBERNETES_DEPLOY_URL echo "kubernets-deploy.yaml downloaded successfully." echo "Applying Kubernetes deployment..." kubectl apply -f kubernetes-deploy.yaml ;; - *) + * ) echo "Invalid choice. Exiting." exit 1 ;;