From c028f1b816e192cc86ccb130f5524b22e2db60a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?A=2E=20T=C3=A4ffner?= <darkalex@firesplash.de>
Date: Tue, 13 Sep 2016 10:19:29 +0200
Subject: [PATCH] check if wanted before configuration the apps vHost

---
 install/update.php | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/install/update.php b/install/update.php
index be667ffd05..aafb69898e 100644
--- a/install/update.php
+++ b/install/update.php
@@ -428,9 +428,11 @@ if($reconfigure_services_answer == 'yes' || $reconfigure_services_answer == 'sel
 				$inst->configure_nginx();
 			}
 
-			//** Configure apps vhost
-			swriteln('Configuring Apps vhost');
-			$inst->configure_apps_vhost();
+			if ($conf['web']['apps_vhost_enabled'] == 'y') {
+				//** Configure apps vhost
+				swriteln('Configuring Apps vhost');
+				$inst->configure_apps_vhost();
+			} else swriteln('Skipping config of Apps vhost');
 		}
 	
 		//* Configure Jailkit
-- 
GitLab