1616export PATH=$PATH :/sbin
1717export DEBIAN_FRONTEND=noninteractive
1818RHOST=' apt.hestiacp.com'
19- RHOSTBETA=' beta.hestiacp.com'
20-
2119GPG=' gpg.hestiacp.com'
2220VERSION=' ubuntu'
2321HESTIA=' /usr/local/hestia'
@@ -86,7 +84,6 @@ help() {
8684 -e, --email Set admin email
8785 -p, --password Set admin password
8886 -D, --with-debs Path to Hestia debs
89- -B, --beta Development version [yes|no] default: yes
9087 -f, --force Force installation
9188 -h, --help Print this help
9289
@@ -218,7 +215,6 @@ for arg; do
218215 --email) args=" ${args} -e " ;;
219216 --password) args=" ${args} -p " ;;
220217 --force) args=" ${args} -f " ;;
221- --beta) args=" ${args} -B " ;;
222218 --with-debs) args=" ${args} -D " ;;
223219 --help) args=" ${args} -h " ;;
224220 * ) [[ " ${arg: 0: 1} " == " -" ]] || delim=" \" "
228224eval set -- " $args "
229225
230226# Parsing arguments
231- while getopts " a:w:v:j:k:m:g:d:x:z:Z:c:t:i:b:r:o:q:l:y:s:e:p:D:B: fh" Option; do
227+ while getopts " a:w:v:j:k:m:g:d:x:z:Z:c:t:i:b:r:o:q:l:y:s:e:p:D:fh" Option; do
232228 case $Option in
233229 a) apache=$OPTARG ;; # Apache
234230 w) phpfpm=$OPTARG ;; # PHP-FPM
@@ -253,7 +249,6 @@ while getopts "a:w:v:j:k:m:g:d:x:z:Z:c:t:i:b:r:o:q:l:y:s:e:p:D:B:fh" Option; do
253249 s) servername=$OPTARG ;; # Hostname
254250 e) email=$OPTARG ;; # Admin email
255251 p) vpass=$OPTARG ;; # Admin password
256- B) beta=$OPTARG ;; # Beta / Development version
257252 D) withdebs=$OPTARG ;; # Hestia debs path
258253 f) force=' yes' ;; # Force install
259254 h) help ;; # Help
@@ -289,7 +284,6 @@ set_default_value 'fail2ban' 'yes'
289284set_default_value ' quota' ' no'
290285set_default_value ' interactive' ' yes'
291286set_default_value ' api' ' yes'
292- set_default_value ' beta' ' no'
293287set_default_port ' 8083'
294288set_default_lang ' en'
295289
@@ -422,11 +416,10 @@ if [ -d /etc/netplan ] && [ -z "$force" ]; then
422416 fi
423417fi
424418
425-
419+ # Validate whether installation script matches release version before continuing with install
426420if [ -z " $withdebs " ] || [ ! -d " $withdebs " ]; then
427- # Validate whether installation script matches release version before continuing with install
428421 release_branch_ver=$( curl -s https://raw.githubusercontent.com/hestiacp/hestiacp/release/src/deb/hestia/control | grep " Version:" | awk ' {print $2}' )
429- if [ " $HESTIA_INSTALL_VER " != " $release_branch_ver " ] && [ $beta != ' yes ' ] ; then
422+ if [ " $HESTIA_INSTALL_VER " != " $release_branch_ver " ]; then
430423 echo
431424 echo -e " \e[91mInstallation aborted\e[0m"
432425 echo " ===================================================================="
@@ -441,20 +434,6 @@ if [ -z "$withdebs" ] || [ ! -d "$withdebs" ]; then
441434 echo " "
442435 check_result 1 " Installation aborted"
443436 fi
444-
445- # Validate if a development version is installed when --beta is enabled
446- DISPLAY_VER=$( echo $HESTIA_INSTALL_VER | sed " s|~alpha||g" | sed " s|~beta||g" )
447- if [ " $HESTIA_INSTALL_VER " = " $DISPLAY_VER " ] && [ $beta = ' yes' ]; then
448- echo
449- echo -e " \e[91mInstallation aborted\e[0m"
450- echo " ===================================================================="
451- echo -e " \e[33mERROR: Unable to use beta atp server for stable release\e[0m"
452- echo -e " \e[33mPlease remove the -B or --beta flag from the installer string\e[0m"
453-
454-
455- echo " "
456- check_result 1 " Installation aborted"
457- fi
458437fi
459438
460439case $architecture in
@@ -501,7 +480,7 @@ install_welcome_message() {
501480 echo " www.hestiacp.com "
502481 echo
503482 echo " ========================================================================"
504- echo
483+ echo
505484 echo " Thank you for downloading Hestia Control Panel! In a few moments,"
506485 echo " we will begin installing the following components on your server:"
507486 echo
@@ -719,14 +698,6 @@ echo "[ * ] Hestia Control Panel"
719698echo " deb [arch=$ARCH signed-by=/usr/share/keyrings/hestia-keyring.gpg] https://$RHOST / $codename main" > $apt /hestia.list
720699gpg --no-default-keyring --keyring /usr/share/keyrings/hestia-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys A189E93654F0B0E5 > /dev/null 2>&1
721700
722- if [ " $beta " = ' yes' ]; then
723- # Enable preview mode
724- sed -i ' s/deb/#deb/' $apt /hestia.list
725- echo " [ ! ] Hestia Control Panel (Preview version)"
726- echo " deb [arch=$ARCH signed-by=/usr/share/keyrings/hestia-beta-keyring.gpg] https://$RHOSTBETA / $codename main" > $apt /hestia-beta.list
727- curl -s " https://$RHOSTBETA /pubkey.gpg" | gpg --dearmor | tee /usr/share/keyrings/hestia-beta-keyring.gpg > /dev/null 2>&1
728- fi
729-
730701# Installing PostgreSQL repo
731702if [ " $postgresql " = ' yes' ]; then
732703 echo " [ * ] PostgreSQL"
0 commit comments