-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinstall.sh
More file actions
30 lines (25 loc) · 902 Bytes
/
Copy pathinstall.sh
File metadata and controls
30 lines (25 loc) · 902 Bytes
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
#!/bin/bash
# install.sh - Setup script for Reckoning
set -e
echo "========================================"
echo " Reckoning - install"
echo "========================================"
if ! command -v python3 &> /dev/null; then
echo "Python 3 is not installed. Install Python 3.9+ and retry."
exit 1
fi
echo "Python $(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")') detected"
echo "Creating virtual environment..."
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
mkdir -p logs backups img
chmod +x start.sh 2>/dev/null || true
echo ""
echo "Installation complete."
echo "Start with: ./start.sh"
echo ""
echo "On first launch a temporary admin password is printed to the console"
echo "and written to ADMIN_CREDENTIALS.txt. You will be forced to change it"
echo "and set up MFA on first login."