Files
hestiacp/src/hst_bootstrap_install.sh

30 lines
1.1 KiB
Bash
Raw Normal View History

2024-03-19 22:05:27 +03:00
#!/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
if [ -f "/etc/redhat-release" ]; then
2024-04-14 22:48:16 +03:00
wget https://dev.putey.net/bayrepo/hestiacp/raw/branch/master/install/hst-install-rhel.sh
2024-03-19 22:05:27 +03:00
else
2024-04-14 22:48:16 +03:00
wget https://dev.putey.net/bayrepo/hestiacp/raw/branch/master/install/hst-install-$os.sh
2024-03-19 22:05:27 +03:00
fi
2024-04-14 22:48:16 +03:00
wget https://dev.putey.net/bayrepo/hestiacp/raw/branch/master/src/hst_autocompile.sh
2024-03-19 22:05:27 +03:00
# 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-rhel.sh -f -y no -e admin@test.local -p P@ssw0rd -s hestia-$branch-rhel.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