-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·48 lines (42 loc) · 1.04 KB
/
setup.sh
File metadata and controls
executable file
·48 lines (42 loc) · 1.04 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
#!/bin/bash
# Dockerbak Setup Script
echo "======================================"
echo "Dockerbak Setup"
echo "======================================"
echo ""
# Check Python version
echo "Checking Python version..."
if ! command -v python3 &> /dev/null; then
echo "Error: Python 3 is not installed"
exit 1
fi
PYTHON_VERSION=$(python3 --version 2>&1 | awk '{print $2}')
echo "Found Python $PYTHON_VERSION"
# Check if pip is available
echo ""
echo "Checking pip..."
if ! command -v pip3 &> /dev/null; then
echo "Error: pip3 is not installed"
exit 1
fi
# Install dependencies
echo ""
echo "Installing dependencies..."
pip3 install -r requirements.txt
if [ $? -eq 0 ]; then
echo ""
echo "======================================"
echo "Setup completed successfully!"
echo "======================================"
echo ""
echo "To run Dockerbak:"
echo " ./dockerbak.py"
echo ""
echo "Or:"
echo " python3 dockerbak.py"
echo ""
else
echo ""
echo "Error: Failed to install dependencies"
exit 1
fi