This repository was archived by the owner on Nov 13, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.sh
More file actions
74 lines (58 loc) · 1.86 KB
/
install.sh
File metadata and controls
74 lines (58 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
# Aphrodite v2 One-Line Installer
# Usage: curl -fsSL https://raw.githubusercontent.com/YOUR_USERNAME/aphrodite/main/install.sh | bash
set -e
# Colors
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo -e "${BLUE}🐋 Aphrodite v2 Quick Installer${NC}"
echo "=================================="
echo ""
# Check prerequisites
if ! command -v docker >/dev/null 2>&1; then
echo "❌ Docker is required but not installed."
echo "Please install Docker first: https://docs.docker.com/get-docker/"
exit 1
fi
if ! command -v docker-compose >/dev/null 2>&1; then
echo "❌ Docker Compose is required but not installed."
echo "Please install Docker Compose first: https://docs.docker.com/compose/install/"
exit 1
fi
# Create directory
INSTALL_DIR="aphrodite-v2"
if [ -d "$INSTALL_DIR" ]; then
echo -e "${YELLOW}⚠️ Directory $INSTALL_DIR already exists.${NC}"
read -p "Continue anyway? (y/N): " -n 1 -r
echo ""
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi
fi
mkdir -p "$INSTALL_DIR"
cd "$INSTALL_DIR"
echo -e "${GREEN}✅ Created directory $INSTALL_DIR${NC}"
# Download files
echo "📥 Downloading configuration files..."
BASE_URL="https://raw.githubusercontent.com/YOUR_USERNAME/aphrodite/main"
curl -fsSL "$BASE_URL/docker-compose.yml" -o docker-compose.yml
curl -fsSL "$BASE_URL/.env.example" -o .env.example
curl -fsSL "$BASE_URL/scripts/setup.sh" -o setup.sh
chmod +x setup.sh
echo -e "${GREEN}✅ Downloaded configuration files${NC}"
# Run setup
echo "🔧 Running setup..."
./setup.sh
echo ""
echo -e "${GREEN}🎉 Installation complete!${NC}"
echo ""
echo "🚀 Start Aphrodite with:"
echo " docker-compose up -d"
echo ""
echo "📱 Then visit: http://localhost:8000"
echo ""
echo "📁 You're now in the $INSTALL_DIR directory"
echo " All your poster files will be saved to ./posters/"
echo ""