From 4c2c363036bbf1093cd0f732a23a05795e16aa06 Mon Sep 17 00:00:00 2001
From: bmarlon <bmarlon@ispconfig3>
Date: Thu, 28 Apr 2011 06:03:16 -0400
Subject: [PATCH] * Changed "aptitude upgrade -y" to "aptitude safe-upgrade -y" since upgrade is deprecated. + Added DNS-import, not finished. Needs language-variables and better way to parse SOA-record and possibly some cleaning.
---
server/plugins-available/apps_vhost_plugin.inc.php | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/server/plugins-available/apps_vhost_plugin.inc.php b/server/plugins-available/apps_vhost_plugin.inc.php
index a87ef5e..47107b0 100644
--- a/server/plugins-available/apps_vhost_plugin.inc.php
+++ b/server/plugins-available/apps_vhost_plugin.inc.php
@@ -82,6 +82,9 @@
$vhost_conf_enabled_dir = $web_config['vhost_conf_enabled_dir'];
$apps_vhost_servername = ($web_config['apps_vhost_servername'] == '')?'':'ServerName '.$web_config['apps_vhost_servername'];
+ $web_config['apps_vhost_port'] = (empty($web_config['apps_vhost_port']))?8081:$web_config['apps_vhost_port'];
+ $web_config['apps_vhost_ip'] = (empty($web_config['apps_vhost_ip']))?'_default_':$web_config['apps_vhost_ip'];
+
$content = str_replace('{apps_vhost_ip}', $web_config['apps_vhost_ip'], $content);
$content = str_replace('{apps_vhost_port}', $web_config['apps_vhost_port'], $content);
$content = str_replace('{apps_vhost_dir}', $web_config['website_basedir'].'/apps', $content);
--
Gitblit v1.9.1