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

Merge pull request #2010 from hestiacp/fix/1995_postfix-conflict

Fix/1995 postfix conflict
Jaap Marcus 4 лет назад
Родитель
Сommit
3fa768535a
3 измененных файлов с 33 добавлено и 18 удалено
  1. 17 16
      CHANGELOG.md
  2. 8 1
      install/hst-install-debian.sh
  3. 8 1
      install/hst-install-ubuntu.sh

+ 17 - 16
CHANGELOG.md

@@ -12,14 +12,15 @@ All notable changes to this project will be documented in this file.
 
 
 - Resolve issue with double ENFORCE_SUBDOMAIN_OWNERSHIP keys in hestia.conf
 - Resolve issue with double ENFORCE_SUBDOMAIN_OWNERSHIP keys in hestia.conf
 - Resolve issue with create new user during install in some cases #2000
 - Resolve issue with create new user during install in some cases #2000
-- Fix an issue with Quick Install apps named Test123 
+- Fixed an issue with Quick Install apps named Test123
+- Fixed #1995 Postfix should not conflict when no mailservice is selected
 
 
 ## [1.4.7] - Service release 
 ## [1.4.7] - Service release 
 
 
 ### Bugfixes
 ### Bugfixes
 
 
-- Fix #1984 phppgadmin not working on apache2 systems
-- Fix #1985 Restart service not working
+- Fixed #1984 phppgadmin not working on apache2 systems
+- Fixed #1985 Restart service not working
 
 
 
 
 ## [1.4.6] - Service release 
 ## [1.4.6] - Service release 
@@ -32,12 +33,12 @@ All notable changes to this project will be documented in this file.
 
 
 ### Bugfixes
 ### Bugfixes
 
 
-- Fix #1961 Renewal Apache2 only SSL certificate fails
+- Fixed #1961 Renewal Apache2 only SSL certificate fails
 - Fixed #1956 to prevent reset of defined webmail client.
 - Fixed #1956 to prevent reset of defined webmail client.
 - Explicitly disable cron reports #1978 
 - Explicitly disable cron reports #1978 
 - Fixed an issue where in rare cases certificate failed to install @dpeca and @myvesta
 - Fixed an issue where in rare cases certificate failed to install @dpeca and @myvesta
 - Fixed an issue where composer failed to install when .composer folder is missing
 - Fixed an issue where composer failed to install when .composer folder is missing
-- Fix #1980 Lets Encrypt Auto Renewal Reverts Webmail Client back to Roundcube
+- Fixed #1980 Lets Encrypt Auto Renewal Reverts Webmail Client back to Roundcube
 
 
 ## [1.4.5] - Service release
 ## [1.4.5] - Service release
 
 
@@ -58,15 +59,15 @@ All notable changes to this project will be documented in this file.
 ### Bugfixes
 ### Bugfixes
 
 
 - Add template for when webmail is disabled allowing to generate SSL. 
 - Add template for when webmail is disabled allowing to generate SSL. 
-- Fix PHP bug in /list/log/ 
-- Fix issue with time in /list/services as it was showing as 50 minute1 instead of minutes
+- Fixed PHP bug in /list/log/ 
+- Fixed issue with time in /list/services as it was showing as 50 minute1 instead of minutes
 - Add missing back buttons + fix behavoir of back buttons on login page. 
 - Add missing back buttons + fix behavoir of back buttons on login page. 
 - Set "default" when WEB_TEMPLATE and PROXY_TEMPLATE is missing in user.conf 
 - Set "default" when WEB_TEMPLATE and PROXY_TEMPLATE is missing in user.conf 
 - Add BACKEND_TEMPLATE to default package
 - Add BACKEND_TEMPLATE to default package
-- Fix possible error occur for v-rebuild-cron-jobs #1943 (thanks @clarkchentw)
+- Fixed possible error occur for v-rebuild-cron-jobs #1943 (thanks @clarkchentw)
 - Restrict access Filemanager when SSH is enabled for the user (@bet0x)
 - Restrict access Filemanager when SSH is enabled for the user (@bet0x)
 - Check for DNS domains when running v-change-sys-ip-nat (@clarkchentw)
 - Check for DNS domains when running v-change-sys-ip-nat (@clarkchentw)
-- Fix logical error in installer (@clarkchentw)
+- Fixed logical error in installer (@clarkchentw)
 
 
 ## [1.4.3] - Service release
 ## [1.4.3] - Service release
 
 
@@ -112,10 +113,10 @@ Then run the update via
 
 
 ### Bugfixes
 ### Bugfixes
 
 
-- Fix issue wit startup script for iptables / network (#1849) (@myrevery)
-- Fix problem with accidentally replacing nginx.conf during upgrade nginx (#1878 / @myrevery)
-- Fix issue with installing Ubuntu 18.04
-- Fix issue with login into file manger as admin user
+- Fixed issue wit startup script for iptables / network (#1849) (@myrevery)
+- Fixed problem with accidentally replacing nginx.conf during upgrade nginx (#1878 / @myrevery)
+- Fixed issue with installing Ubuntu 18.04
+- Fixed issue with login into file manger as admin user
 - Added proxy_extentions back to support older custom templates
 - Added proxy_extentions back to support older custom templates
 - Added the possibility to skip the forced reboot when interactive is set to no
 - Added the possibility to skip the forced reboot when interactive is set to no
 - Fixed an issue with modx template
 - Fixed an issue with modx template
@@ -552,7 +553,7 @@ Then run the update via
 - Remove broken /webmail alias from previous versions.
 - Remove broken /webmail alias from previous versions.
 - Webmail IP address is now inherited from web domain when using multiple IPs.
 - Webmail IP address is now inherited from web domain when using multiple IPs.
 - Exim now uses the web domain IP if it exists.
 - Exim now uses the web domain IP if it exists.
-- Fix incorrect MX record for DNS domains using the Office 365 template.
+- Fixed incorrect MX record for DNS domains using the Office 365 template.
 
 
 ## [1.0.6] - 2019-09-24 - Hotfix
 ## [1.0.6] - 2019-09-24 - Hotfix
 ### Bugfixes
 ### Bugfixes
@@ -560,9 +561,9 @@ Then run the update via
 
 
 ## [1.0.5] - 2019-08-06 - Hotfix
 ## [1.0.5] - 2019-08-06 - Hotfix
 ### Bugfixes
 ### Bugfixes
-- Fix several security issues, thanks to Andrea Cardaci (https://cardaci.xyz/)
+- Fixed several security issues, thanks to Andrea Cardaci (https://cardaci.xyz/)
 - Rework Let's Encrypt ACME staging to use hestia conform standard.
 - Rework Let's Encrypt ACME staging to use hestia conform standard.
-- Fix if condition, use nginx for Let's Encrypt ACME request if present.
+- Fixed if condition, use nginx for Let's Encrypt ACME request if present.
 
 
 ## [1.0.4] - 2019-07-09 - Hotfix
 ## [1.0.4] - 2019-07-09 - Hotfix
 ### Bugfixes
 ### Bugfixes

+ 8 - 1
install/hst-install-debian.sh

@@ -343,7 +343,14 @@ check_result $? "Unable to connect to the Hestia APT repository"
 # Check installed packages
 # Check installed packages
 tmpfile=$(mktemp -p /tmp)
 tmpfile=$(mktemp -p /tmp)
 dpkg --get-selections > $tmpfile
 dpkg --get-selections > $tmpfile
-for pkg in exim4 mariadb-server apache2 nginx hestia postfix; do
+conflicts_pkg="exim4 mariadb-server apache2 nginx hestia postfix"
+
+# Drop postfix from the list if exim should not be installed
+if [ "$exim" = 'no' ]; then
+    conflicts_pkg=$(echo $conflicts_pkg | sed -i 's/postfix//g' | xargs)
+fi
+
+for pkg in $conflicts_pkg; do
     if [ ! -z "$(grep $pkg $tmpfile)" ]; then
     if [ ! -z "$(grep $pkg $tmpfile)" ]; then
         conflicts="$pkg* $conflicts"
         conflicts="$pkg* $conflicts"
     fi
     fi

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

@@ -317,7 +317,14 @@ check_result $? "Unable to connect to the Hestia APT repository"
 # Check installed packages
 # Check installed packages
 tmpfile=$(mktemp -p /tmp)
 tmpfile=$(mktemp -p /tmp)
 dpkg --get-selections > $tmpfile
 dpkg --get-selections > $tmpfile
-for pkg in exim4 mariadb-server apache2 nginx hestia postfix ufw; do
+conflicts_pkg="exim4 mariadb-server apache2 nginx hestia postfix ufw"
+
+# Drop postfix from the list if exim should not be installed
+if [ "$exim" = 'no' ]; then
+    conflicts_pkg=$(echo $conflicts_pkg | sed -i 's/postfix//g' | xargs)
+fi
+
+for pkg in $conflicts_pkg; do
     if [ ! -z "$(grep $pkg $tmpfile)" ]; then
     if [ ! -z "$(grep $pkg $tmpfile)" ]; then
         conflicts="$pkg* $conflicts"
         conflicts="$pkg* $conflicts"
     fi
     fi