Просмотр исходного кода

Fix version check exim (#4129)

Version exim is 4.94 instead 4.9.4
Jaap Marcus 2 лет назад
Родитель
Сommit
695e8da8cc
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      install/hst-install-debian.sh
  2. 1 1
      install/hst-install-ubuntu.sh

+ 2 - 2
install/hst-install-debian.sh

@@ -1814,10 +1814,10 @@ if [ "$exim" = 'yes' ]; then
 	gpasswd -a Debian-exim mail > /dev/null 2>&1
 	exim_version=$(exim4 --version | head -1 | awk '{print $3}' | cut -f -2 -d .)
 	# if Exim version > 4.9.4 or greater!
-	if ! version_ge "4.9.5" "$exim_version"; then
+	if ! version_ge "4.95" "$exim_version"; then
 		cp -f $HESTIA_INSTALL_DIR/exim/exim4.conf.4.95.template /etc/exim4/exim4.conf.template
 	else
-		if ! version_ge "4.9.3" "$exim_version"; then
+		if ! version_ge "4.93" "$exim_version"; then
 			cp -f $HESTIA_INSTALL_DIR/exim/exim4.conf.4.94.template /etc/exim4/exim4.conf.template
 		else
 			cp -f $HESTIA_INSTALL_DIR/exim/exim4.conf.template /etc/exim4/

+ 1 - 1
install/hst-install-ubuntu.sh

@@ -1825,7 +1825,7 @@ if [ "$exim" = 'yes' ]; then
 	gpasswd -a Debian-exim mail > /dev/null 2>&1
 	exim_version=$(exim4 --version | head -1 | awk '{print $3}' | cut -f -2 -d .)
 	# if Exim version > 4.9.4 or greater!
-	if ! version_ge "4.9.4" "$exim_version"; then
+	if ! version_ge "4.94" "$exim_version"; then
 		# Ubuntu 22.04 (Jammy) uses Exim 4.95 instead but config works with Exim4.94
 		cp -f $HESTIA_INSTALL_DIR/exim/exim4.conf.4.95.template /etc/exim4/exim4.conf.template
 	else