-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·56 lines (47 loc) · 1.66 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·56 lines (47 loc) · 1.66 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
#!/bin/bash
# 🎭 n8n Workflow Manager Setup Script
# Quick setup script for bash/zsh environments
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
GREEN='\033[0;32m'
RED='\033[0;31m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
echo -e "${GREEN}🎭 n8n Workflow Manager Setup${NC}"
echo "=================================================="
# Check Python version
echo "🐍 Checking Python installation..."
if ! command -v python3 &> /dev/null; then
echo -e "${RED}❌ Python 3 is required but not installed${NC}"
exit 1
fi
PYTHON_VERSION=$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
echo -e " ✅ Python ${PYTHON_VERSION} found"
# Check if pip is available
if ! python3 -m pip --version &> /dev/null; then
echo -e "${RED}❌ pip is required but not available${NC}"
exit 1
fi
# Run Python installer
echo "🔧 Running Python installer..."
python3 "${SCRIPT_DIR}/install.py"
# Verify installation
echo "🧪 Quick verification..."
if command -v n8n-deploy &> /dev/null; then
echo -e " ✅ 'n8n-deploy' command available"
else
echo -e " ${YELLOW}⚠️ 'n8n-deploy' command not found in PATH${NC}"
echo " You may need to restart your shell or add ~/.local/bin to PATH"
fi
echo -e "${GREEN}✅ Setup completed!${NC}"
echo ""
echo "Quick start commands:"
echo " n8n-deploy --help # Show help"
echo " n8n-deploy db init # Initialize database"
echo " n8n-deploy wf list # List workflows"
echo " n8n-deploy db status # Database statistics"
echo " n8n-deploy apikey list # List API keys"
echo ""
echo "For more information:"
echo " n8n-deploy --help"
echo " cat README.md"