From aef0b73c48c8b48087309fccc4f1129a5cfe3af1 Mon Sep 17 00:00:00 2001 From: Evan Date: Mon, 10 Mar 2025 19:47:48 -0700 Subject: [PATCH] remove setup.sh --- setup.sh | 59 -------------------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 setup.sh diff --git a/setup.sh b/setup.sh deleted file mode 100644 index ff1a4b4e8..000000000 --- a/setup.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# Comprehensive setup script for Hetzner server with Docker and Cloudflare R2 configuration - -# Exit on error -set -e - -echo "🔄 Updating system..." -apt update && apt upgrade -y - -echo "🐳 Installing Docker..." -# Install Docker using official script -curl -fsSL https://get.docker.com -o get-docker.sh -sh get-docker.sh -systemctl enable --now docker - -# Set up Docker Hub credentials -echo "🔐 Setting up Docker Hub login..." -echo "Enter your Docker Hub username:" -read DOCKER_USERNAME -echo "Enter your Docker Hub password/token:" -read -s DOCKER_PASSWORD -echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin -echo "✅ Docker Hub login configured" - -echo "☁️ Installing AWS CLI for Cloudflare R2..." -# Install AWS CLI -apt install -y unzip curl -curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" -unzip awscliv2.zip -./aws/install -rm -rf aws awscliv2.zip - -# Configure AWS CLI for R2 -echo "🔧 Configuring AWS CLI for Cloudflare R2..." -echo "Enter your Cloudflare R2 Access Key ID:" -read R2_ACCESS_KEY -echo "Enter your Cloudflare R2 Secret Access Key:" -read -s R2_SECRET_KEY -echo "Enter your Cloudflare Account ID:" -read CLOUDFLARE_ACCOUNT_ID - -# Create R2 profile configuration -mkdir -p ~/.aws -cat > ~/.aws/credentials << EOL -[r2] -aws_access_key_id = $R2_ACCESS_KEY -aws_secret_access_key = $R2_SECRET_KEY -EOL - -cat > ~/.aws/config << EOL -[profile r2] -region = auto -endpoint_url = https://$CLOUDFLARE_ACCOUNT_ID.r2.cloudflarestorage.com -EOL - -echo "✅ R2 configuration complete" - -echo "🎉 Setup complete! You can find helpful Docker and R2 commands in ~/docker-commands.sh" -echo "Test your R2 connection: aws s3 ls --profile r2" \ No newline at end of file