@@ -20,8 +20,10 @@ os='debian'
2020release=$( cat /etc/debian_version | tr " ." " \n" | head -n1)
2121codename=" $( cat /etc/os-release | grep VERSION= | cut -f 2 -d \( | cut -f 1 -d \) ) "
2222HESTIA_INSTALL_DIR=" $HESTIA /install/deb"
23+ VERBOSE=' no'
2324
2425# Define software versions
26+ HESTIA_INSTALL_VER=' 1.1.2'
2527pma_v=' 5.0.2'
2628multiphp_v=(" 5.6" " 7.0" " 7.1" " 7.2" " 7.3" " 7.4" )
2729fpm_v=" 7.3"
@@ -438,7 +440,7 @@ echo ' | _ | __/\__ \ |_| | (_| | |___| __/ '
438440echo ' |_| |_|\___||___/\__|_|\__,_|\____|_| '
439441echo
440442echo ' Hestia Control Panel'
441- echo ' v1.1.2 '
443+ echo " v ${HESTIA_INSTALL_VER} "
442444echo -e " \n"
443445echo " ===================================================================="
444446echo -e " \n"
669671echo
670672
671673# Check Installation result
674+ wait $BACK_PID
672675check_result $? ' apt-get upgrade failed'
673676
674677
838841# Install packages #
839842# ----------------------------------------------------------#
840843
844+ if [ -z " $withdebs " ] || [ ! -d " $withdebs " ]; then
845+ release_branch_ver=$( curl -s https://raw.githubusercontent.com/hestiacp/hestiacp/release/src/deb/hestia/control | grep " Version:" | awk ' {print $2}' )
846+ if [ " $HESTIA_INSTALL_VER " != " $release_branch_ver " ]; then
847+ echo
848+ echo -e " \e[91mInstallation Aborted\e[0m"
849+ echo " ===================================================================="
850+ echo -e " \e[33mInstall script does not match Hestia release version\e[0m"
851+ echo -e " \e[33mPlease use the installer from the release branch\e[0m"
852+ echo " "
853+ echo -e " \e[33mTo test the beta version you need to build the hestia deb packages and re-run the installer\e[0m"
854+ echo -e " \e[33m./hst_autocompile.sh \e[1m--hestia no\e[21m\e[0m"
855+ echo -e " \e[33m./hst-install.sh .. \e[1m--with-debs /tmp/hestiacp-src/debs\e[21m\e[0m"
856+ check_result 1 " Installation aborted"
857+ fi
858+ fi
859+
841860# Disabling daemon autostart on apt-get install
842861echo -e ' #!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d
843862chmod a+x /usr/sbin/policy-rc.d
860879echo
861880
862881# Check Installation result
882+ wait $BACK_PID
863883check_result $? " apt-get install failed"
864884
865885# Install Hestia packages from local folder
@@ -1091,7 +1111,7 @@ echo "BACKUP_SYSTEM='local'" >> $HESTIA/conf/hestia.conf
10911111echo " LANGUAGE='$lang '" >> $HESTIA /conf/hestia.conf
10921112
10931113# Version & Release Branch
1094- echo " VERSION='1.1.2 '" >> $HESTIA /conf/hestia.conf
1114+ echo " VERSION='${HESTIA_INSTALL_VER} '" >> $HESTIA /conf/hestia.conf
10951115echo " RELEASE_BRANCH='release'" >> $HESTIA /conf/hestia.conf
10961116
10971117# Installing hosting packages
0 commit comments