hst_bootstrap_install.sh 971 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. # Clean installation bootstrap for development purposes only
  3. # Usage: ./hst_bootstrap_install.sh [fork] [branch] [os]
  4. # Example: ./hst_bootstrap_install.sh hestiacp main ubuntu
  5. # Define variables
  6. fork=$1
  7. branch=$2
  8. os=$3
  9. # Download specified installer and compiler
  10. wget https://raw.githubusercontent.com/$fork/hestiacp/$branch/install/hst-install-$os.sh
  11. wget https://raw.githubusercontent.com/$fork/hestiacp/$branch/src/hst_autocompile.sh
  12. # Execute compiler and build hestia core package
  13. chmod +x hst_autocompile.sh
  14. ./hst_autocompile.sh --hestia $branch no
  15. # Execute Hestia Control Panel installer with default dummy options for testing
  16. if [ -f "/etc/redhat-release" ]; then
  17. 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
  18. else
  19. 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
  20. fi