-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_full.sh
More file actions
executable file
Β·39 lines (31 loc) Β· 985 Bytes
/
Copy pathinstall_full.sh
File metadata and controls
executable file
Β·39 lines (31 loc) Β· 985 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
31
32
33
34
35
36
37
38
39
#!/bin/bash
echo "π οΈ Starting SELFIX HomeGuard Installation..."
# Root check
if [ "$EUID" -ne 0 ]; then
echo "β Please run as root or with sudo."
exit 1
fi
# Target installation dir
INSTALL_DIR="/opt/SELFIX"
BIN_PATH="/usr/local/bin/selfix"
# Step 1: Create directory
mkdir -p "$INSTALL_DIR"
echo "π Created install directory at $INSTALL_DIR"
# Step 2: Copy core files
cp selfix_installer.py "$INSTALL_DIR/"
cp license_validator.py "$INSTALL_DIR/"
cp license_check.py "$INSTALL_DIR/"
cp -r assets "$INSTALL_DIR/"
echo "π Copied installer and assets"
# Step 3: (Optional) Create CLI launcher
cat > "$BIN_PATH" <<EOF
#!/bin/bash
python3 $INSTALL_DIR/selfix_installer.py "\$@"
EOF
chmod +x "$BIN_PATH"
echo "π CLI launcher installed: type 'selfix' to run"
# Step 4: Dependencies
echo "π¦ Installing Python dependencies (if required)..."
pip3 install --upgrade pip
pip3 install pyinstaller > /dev/null 2>&1
echo "β
SELFIX HomeGuard installed successfully."