forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhst_bootstrap_install.sh
More file actions
executable file
·25 lines (20 loc) · 971 Bytes
/
hst_bootstrap_install.sh
File metadata and controls
executable file
·25 lines (20 loc) · 971 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
#!/bin/bash
# Clean installation bootstrap for development purposes only
# Usage: ./hst_bootstrap_install.sh [fork] [branch] [os]
# Example: ./hst_bootstrap_install.sh hestiacp main ubuntu
# Define variables
fork=$1
branch=$2
os=$3
# Download specified installer and compiler
wget https://raw.githubusercontent.com/$fork/hestiacp/$branch/install/hst-install-$os.sh
wget https://raw.githubusercontent.com/$fork/hestiacp/$branch/src/hst_autocompile.sh
# Execute compiler and build hestia core package
chmod +x hst_autocompile.sh
./hst_autocompile.sh --hestia $branch no
# Execute Hestia Control Panel installer with default dummy options for testing
if [ -f "/etc/redhat-release" ]; then
bash hst-install-$os.sh -f -y no -e admin@test.local -p P@ssw0rd -s hestia-$branch-$os.test.local --with-rpms /tmp/hestiacp-src/rpms
else
bash hst-install-$os.sh -f -y no -e admin@test.local -p P@ssw0rd -s hestia-$branch-$os.test.local --with-debs /tmp/hestiacp-src/debs
fi